Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import ideas from heapsize crate #8

Open
str4d opened this issue Sep 6, 2021 · 0 comments
Open

Import ideas from heapsize crate #8

str4d opened this issue Sep 6, 2021 · 0 comments

Comments

@str4d
Copy link
Owner

str4d commented Sep 6, 2021

I searched for existing crates prior to writing this one, and somehow completely missed the heapsize crate from the Servo devs. It takes a very similar approach to this crate, in that it defines a trait that individual library developers would implement for their own types. It is also used by a small but

However, the crate has been unmaintained since 2019, the Servo devs having abandoned this approach in favour of their internal malloc_size_of crate. Had I discovered heapsize, I probably would have tried extending it, but now that memuse exists, we should take the opportunity to experiment and figure out a design we like (which may or may not stay close to heapsize).

In any case, we should look over the heapsize crate for useful ideas. In particular, it impls its traits for several more stdlib structs than we currently do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant