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

feat(bitslab): add capacity limit to index allocs #293

Merged
merged 2 commits into from
Oct 5, 2023
Merged

Conversation

hawkw
Copy link
Contributor

@hawkw hawkw commented Oct 4, 2023

Currently, an IndexAlloc{N} from mnemos-bitslab will always allocate up to the number of bits in the numeric type used as the bitmap. In some cases, it may be desirable to allocate fewer values. Therefore, this branch adds support for setting an upper bound on the number of indices, which may be lower than the available bits.

hawkw added 2 commits October 4, 2023 15:15
Currently, an `IndexAlloc{N}` from `mnemos-bitslab` will always allocate
up to the number of bits in the numeric type used as the bitmap. In some
cases, it may be desirable to allocate fewer values. Therefore, this
branch adds support for setting an upper bound on the number of indices,
which may be lower than the available bits.
@hawkw hawkw enabled auto-merge (squash) October 4, 2023 22:58
@hawkw hawkw merged commit e3c86ed into main Oct 5, 2023
@hawkw hawkw deleted the eliza/capacitymaxxing branch October 5, 2023 16:13
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

Successfully merging this pull request may close these issues.

1 participant