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

[FIXED] Leaking memory on usage of getHash() #4329

Merged
merged 1 commit into from Jul 20, 2023
Merged

[FIXED] Leaking memory on usage of getHash() #4329

merged 1 commit into from Jul 20, 2023

Commits on Jul 20, 2023

  1. If we created lots of hashes, beyond server names, like for consumer …

    …or stream NRG groups etc, the maps would grow and not release memory.
    
    In the benchmark on my machine, this added ~300ns per call, but I think that is ok for now vs the memory usage.
    
    Signed-off-by: Derek Collison <derek@nats.io>
    derekcollison committed Jul 20, 2023
    Configuration menu
    Copy the full SHA
    b68aed9 View commit details
    Browse the repository at this point in the history