pef

Crates.iopef
lib.rspef
version0.1.3
sourcesrc
created_at2021-08-15 14:14:10.461093
updated_at2021-08-15 17:58:04.684388
descriptionPartioned Elias-Fano encoding for sorted integers
homepage
repositoryhttps://github.com/lightjacket/pef
max_upload_size
id437275
size19,430
(lightjacket)

documentation

https://github.com/lightjacket/pef

README

PEF

This repository is an ongoing Rust implementation of the Partitioned Elias-Fano encoding for sorted integers. The status is as follows:

  • Working Elias-Fano implementation (can encode and get the bytes for the representation)
  • Partitioned Elias-Fano implementation
  • Read performance increases

Examples

let ef = EliasFano::new(vec![1,2,5]);
assert_eq!(ef.get(1), Some(2));
assert_eq!(ef.next_geq(4), Some(5));
let serialized = ef.as_bytes();
Commit count: 16

cargo fmt