Closed
Description
According to our current implementation of B-trees:
rust/src/liballoc/btree/node.rs
Lines 53 to 55 in 5965b79
it would appear that up to
11
key-value pairs can be stored in each node.
For u128
values representing 128
set elements each, 1408
set elements can be stored in a single allocation, with an overhead of around 50% compared to Vec<u128>
in the dense case.
Such sparse bitsets would be really useful for (e.g. dataflow) analysis algorithms, in situations where the bitset elements tend to be localized, with multi-"word" gaps in between local groups.
Metadata
Metadata
Assignees
Labels
Area: `std::collections`Category: An issue proposing an enhancement or a PR with one.Issue: Problems and improvements with respect to memory usage during compilation.Issue: Problems and improvements with respect to compile times.Relevant to the compiler team, which will review and decide on the PR/issue.