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 Slicts be mutable? #1

Open
maxhutch opened this issue Feb 24, 2015 · 0 comments
Open

Should Slicts be mutable? #1

maxhutch opened this issue Feb 24, 2015 · 0 comments
Labels

Comments

@maxhutch
Copy link
Owner

There is nothing intrinsic about the slice-able interface that makes it immutable. Slicts are currently immutable to avoid inconsistency in the back-end dictionary. Slicts store references to the dictionary, not the (key, value)s themselves, so operations on Slicts would be seen by all other Slicts of the same dictionary.

Adding items directly to CachedSlicts would be more efficient than adding items to the back-end dictionary and calling update_cache.

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

No branches or pull requests

1 participant