-
Notifications
You must be signed in to change notification settings - Fork 4
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
std::unordered_map serializer causing huge memory explosion with empty container #180
Comments
Does it work to stick a |
We can probably start by writing a unit test (@cz4rs) to try to reproduce this problem locally. I think we pushed the latest checkpoint code out to EMPIRE so we need to fix that ASAP. |
I haven't tried that... I'm just removing the code altogether to ensure all the memory increase is due to this. |
looking into it right now, I'll try |
@lifflander @PhilMiller I have creted a PR trying to call |
This code seems like it has a bug that is causing a huge number of unordered_map nodes to be allocated even though the target container is actually empty the entire time. It's causing a massive growth of hundreds of megabytes:
At the very least we should not be rehashing everything during sizing and packing! That has linear complexity.
The text was updated successfully, but these errors were encountered: