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

Should keep track of size in a variable #27

Open
mallochine opened this issue Sep 27, 2016 · 2 comments
Open

Should keep track of size in a variable #27

mallochine opened this issue Sep 27, 2016 · 2 comments

Comments

@mallochine
Copy link

My use case here is that I'm essentially using the 'trie' as a memory efficient "set" (I know it's not really a set but whatever).

@tchap
Copy link
Owner

tchap commented Sep 30, 2016

Noted, I will take a look when I have some spare time.

@tchap
Copy link
Owner

tchap commented Jan 17, 2019

To be honest, I am not sure whether to implement this or not. It would depend on the use cases. This would require keeping subtree item count in every trie node, which takes extra space. Otherwise there would be a performance penalty when deleting items since all items being deleted would have to be counted using Walk...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants