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
StringPool
as a collection
#14507
Comments
What would be a use case for this though? I don't think it's really necessary for the purpose of deduplication. |
With known_keys = StringPool{"foo", "bar"}
known_keys << "baz" |
I don't think that depends on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
StringPool
is often used to reduce string memory consumption when one has a byte buffer to begin with, but conceptually it is quite similar to aSet(String)
. That means operations on collections like#count
and#join
should also make sense on aStringPool
. So I wonder if it would be a good idea forStringPool
to includeEnumerable
:The text was updated successfully, but these errors were encountered: