bitpacked
Bitpacked refers to data or representations formed by packing values into the minimal number of bits required, rather than aligning data to whole bytes or larger units. Bitpacking is a technique used to reduce storage space and improve bandwidth when transmitting or storing large datasets.
In practice, bitpacked data often consists of fields with fixed bit widths, such as booleans packed into
Common use cases include memory-efficient in-memory data structures, columnar storage formats and compression schemes, and compact
Trade-offs involve favorable space savings and potential bandwidth improvements versus increased implementation complexity and CPU overhead.
Related concepts include bit fields in programming languages, bit streams, and various forms of run-length encoding