Skip to content

Should Slicts be mutable? #1

@maxhutch

Description

@maxhutch

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions