Skip to content

Preallocate bloom? #5

@jdunck

Description

@jdunck

Redis doesn't alloc the string memory until it needs to, whcih means setbit isn't a predictably O(1) operation.

What do you think of doing "setbit key 0" in init_pyrebloom? (iff the key doesn't already exist)

That would be a pretty quick and rare op and then provide o(1) for all later setbits.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions