You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 a Set(String). That means operations on collections like #count and #join should also make sense on a StringPool. So I wonder if it would be a good idea for StringPool to include Enumerable:
I don't think that depends on #get?; it works directly with #get (otherwise nothing gets inserted), and doesn't even require StringPool to be an Enumerable, as long as a compatible #<< exists
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: