-
Notifications
You must be signed in to change notification settings - Fork 259
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
Don't use wee_alloc! #910
Comments
Memory leaks like this don't matter in our context since the functions are short-lived.
Agree wee_alloc isn't ideal, but tradeoffs with others. For example, in our context, we care a lot about compiled size, and wee_alloc is quite small. We could even go simpler with something like a bump allocator (since we don't care about de-allocations) or something more involved with a larger code size but more efficient, but it's opinionated.
The dlmalloc default has been too bulky to use by default. Can definitely explore deeper though! In any case, we would not remove Related #457 |
Was fine to keep open, but I suppose we can use the other linked issue to track. One thing I will note about this is that near-sdk-rs/near-sdk/Cargo.toml Line 30 in fa293b4
|
There are many reasons not to do it:
Just use default dlmalloc
See more details:
rustwasm/wee_alloc#107
The text was updated successfully, but these errors were encountered: