group-varint-offset-encoding 0.1.1

Fast algorithm to compress lists if integers in blocks of 4. Appends 0s to blocks, if length of input is not divisable by 4.
Documentation
  • Coverage
  • 14.29%
    1 out of 7 items documented0 out of 6 items with examples
  • Size
  • Source code size: 29.46 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.84 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 11s Average build duration of successful builds.
  • all releases: 11s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • nilsmartel/group-varint-encoding
    0 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • nilsmartel

Group Varint Offset Encoding

  • Compressed integers in blocks of 3.
  • Has good compretion rate, even with outliers.
  • Utilized offset encoding to store less bytes.
  • Appends zeros to your data, if it can't be grouped into 3. Manually keep track of the exact amount if needed.

Usage

let data: Vec<u32> = ...;

use group_varint_offset_encoding::{ compress, decompress };

// anything that can be iteratored into u32s works fine.
let compressed_data = compress(&data);

let decompressed_data = decompress(&compressed_data).to_vec();