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

Bit strings variations #663

Open
Konard opened this issue Mar 10, 2023 · 0 comments
Open

Bit strings variations #663

Konard opened this issue Mar 10, 2023 · 0 comments

Comments

@Konard
Copy link
Owner

Konard commented Mar 10, 2023

In addition to bit string itself. We can have a smaller bit string that represent a bitmap with each 1 bit corresponding to N bits in original bit string.

This way for example in a bitmap for bit string we can use a single bit to know that 8 bits in the original bit string are either all 0 or one of them are set. Granulary can correlate with processor cache line or system page.

We also can use an array of sectors with a system page size. Each sector can either have 0 (sector is empty), or index/address of bit string sector on disk. This way we not only optimize search in bit string, we also save actual space on disk, and using such technique we can fill bit string in random order.

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

No branches or pull requests

1 participant