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
Yep, I think github formatting ate my attempt at comment, but yeah, the idea would be to set the furthest bit upon creation so that all later sets wouldn't need to allocate.
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.
The text was updated successfully, but these errors were encountered: