-
Notifications
You must be signed in to change notification settings - Fork 471
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
The Local structure is 2104 bytes long and jemalloc rounds this to 4096 bytes. #551
Comments
crossbeam/crossbeam-epoch/src/internal.rs Lines 362 to 363 in bfb7705
And to reduce the size of the crossbeam/crossbeam-epoch/src/internal.rs Lines 56 to 67 in bfb7705
@stjepang: Is it okay to reduce |
It should be totally fine to reduce it to 31 (if my calculation is right). |
Awesome thanks. |
The Local structure here https://searchfox.org/mozilla-central/source/third_party/rust/crossbeam-epoch/src/internal.rs#287 is 2104 bytes long. When compiled into Firefox and using the jamalloc memory allocator this is rounded up to 4096 bytes (a very common practice). This wastes just under 12KB for a Firefox process that loads a simple website. It'd be nice if it could allocate 2048 bytes or less saving this memory.
Thanks.
The text was updated successfully, but these errors were encountered: