Skip to content

cache the result of __int__ #92

Description

@schwehr

We will have to invalidate the cache if an operation mutates the stored value

If the int is cached for both then eq can use it for a major speedup. This violates encapsulation especially if the comparison is across BitVector implementation types. Maybe expose an is_cached interface?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions