-
Couldn't load subscription status.
- Fork 47
fix: tracks only stored interned string #322
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
base: main
Are you sure you want to change the base?
fix: tracks only stored interned string #322
Conversation
Signed-off-by: proost <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is the wrong strategy. We should less clever, not more clever. The underlying problem is that you're not including the owned, but not shared strings in stringpool. Why not? I think if you just wrap the constructor and destructor of the InternString object with another IsolatedMemoryScope, then you'll solve the problem. It will means that InternString object which aren't entered in the pool get counted in the overall stat. But I don't see that as a problem.
Signed-off-by: proost <[email protected]>
Signed-off-by: proost <[email protected]>
…o fix-string-interning-store-memory-usage Signed-off-by: proost <[email protected]>
|
@allenss-amazon |
…o fix-string-interning-store-memory-usage Signed-off-by: lani_karrot <[email protected]>
…hub.com/proost/valkey-search into fix-string-interning-store-memory-usage Signed-off-by: proost <[email protected]>
…o fix-string-interning-store-memory-usage
Signed-off-by: proost <[email protected]>
@allenss-amazon
I found missed part. there are interned string, but not stored in the store. but deallocation track all interned strings. so we should track only shared interned strings which are stored in the store.