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
By only providing a global cache, the "address spaces" of any two different (serializable) data structures relying on Ustr will be wed. The only way to actually use the serialization feature in a coherent way is to keep your string "cache" (more like a database when serialized AND centralized/global) in its own file, and consider it coupled with any other transactions on data structures storing Ustr.
Solution
Allow for users to create their own Bins or something. I'd like to be able to have isolated Bins, and serialize them next to the data structures that depend on them; as it was mentioned in the README, string-interner has this ability. If it's important that you are using lazy_static with a static variable, maybe use once_cell in the public API instead.
The text was updated successfully, but these errors were encountered:
Problem
By only providing a global cache, the "address spaces" of any two different (serializable) data structures relying on
Ustr
will be wed. The only way to actually use the serialization feature in a coherent way is to keep your string "cache" (more like a database when serialized AND centralized/global) in its own file, and consider it coupled with any other transactions on data structures storingUstr
.Solution
Allow for users to create their own
Bins
or something. I'd like to be able to have isolatedBins
, and serialize them next to the data structures that depend on them; as it was mentioned in the README,string-interner
has this ability. If it's important that you are usinglazy_static
with astatic
variable, maybe useonce_cell
in the public API instead.The text was updated successfully, but these errors were encountered: