Skip to content

Commit

Permalink
aligned-vec updated to 0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
beling committed Sep 26, 2024
1 parent 6cd2481 commit 8883607
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions bitm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bitm"
version = "0.4.2"
version = "0.4.3"
edition = "2021"
authors = ["Piotr Beling <[email protected]>"]
license = "MIT OR Apache-2.0"
Expand All @@ -14,7 +14,7 @@ keywords = [ "bit", "bitmap", "rank", "bitvector", "bitset" ]

[dependencies]
dyn_size_of = { version="0.4", path="../dyn_size_of" }
aligned-vec = { version="0.5", optional=true } # for construcing cache-aligment bit vectors, which usually speeds up rank and select
aligned-vec = { version="0.6", optional=true } # for construcing cache-aligment bit vectors, which usually speeds up rank and select

[dev-dependencies]
criterion = "0.5"
Expand Down
4 changes: 2 additions & 2 deletions bitm/src/bitvec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -489,9 +489,9 @@ impl BitVec for Box<[u64]> {
}

#[cfg(feature = "aligned-vec")]
impl BitVec for aligned_vec::ABox<[u64]> {
impl<const ALIGN: usize> BitVec for aligned_vec::ABox<[u64], aligned_vec::ConstAlign<ALIGN>> {
#[inline(always)] fn with_64bit_segments(segments_value: u64, segments_len: usize) -> Self {
aligned_vec::avec![segments_value; segments_len].into_boxed_slice()
aligned_vec::avec![[ALIGN] | segments_value; segments_len].into_boxed_slice()
}

fn with_bitwords(word: u64, word_len_bits: u8, words_count: usize) -> Self {
Expand Down
4 changes: 2 additions & 2 deletions cseq_benchmark/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ keywords = [ "compression", "sequence", "succinct", "elias-fano", "benchmark" ]
[dependencies]
butils = { version="0.1", path="../butils" }
clap = { version="4", features = ["derive"] }
dyn_size_of = { version=">=0.4.2", path="../dyn_size_of", features=["aligned-vec"] }
dyn_size_of = { version=">=0.4.3", path="../dyn_size_of", features=["aligned-vec"] }
cseq = { version ="0.1", path = "../cseq" }
bitm = { version="0.4", path="../bitm", features=["aligned-vec"] }
sucds = "0.8"
succinct = "0.5"
vers-vecs = { version="1.1", optional=true }
sux="0.3"
mem_dbg = "0.1" # required by sux MemSize
aligned-vec = "0.5"
aligned-vec = "0.6"
2 changes: 1 addition & 1 deletion cseq_benchmark/src/elias_fano.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use bitm::{Rank, Select};
pub fn benchmark(conf: &super::Conf) {
println!("cseq Elias-Fano");

let mut builder = Builder::<ABox<[u64], _>>::new_b(conf.num(), conf.universe as u64);
let mut builder = Builder::<ABox<[u64]>>::new_b(conf.num(), conf.universe as u64);
let tester = conf.add_data(|v| builder.push(v as u64));

//let start_moment = Instant::now();
Expand Down
4 changes: 2 additions & 2 deletions csf_benchmark/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "csf_benchmark"
version = "0.1.5"
version = "0.1.6"
authors = ["Piotr Beling <[email protected]>"]
edition = "2021"
license = "MIT OR Apache-2.0"
Expand All @@ -13,7 +13,7 @@ categories = [ "data-structures", "algorithms", "compression", "science" ]
keywords = [ "perfect", "hashing", "mphf", "map", "dictionary" ]

[dependencies]
csf = { version ="0.1", path = "../csf" }
csf = { version ="0.2", path = "../csf" }
ph = { version="0.8", path="../ph", features = ["wyhash"] }
clap = { version="4", features = ["derive"] }
#fsum = { version ="0.1", path = "../fsum" }
4 changes: 2 additions & 2 deletions dyn_size_of/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dyn_size_of"
version = "0.4.2"
version = "0.4.3"
edition = "2021"
authors = ["Piotr Beling <[email protected]>"]
license = "MIT OR Apache-2.0"
Expand All @@ -13,4 +13,4 @@ categories = [ "data-structures", "science" ]
keywords = [ "memory", "complexity", "heap" ]

[dependencies]
aligned-vec = { version="0.5", optional=true }
aligned-vec = { version=">=0.5", optional=true }
4 changes: 2 additions & 2 deletions dyn_size_of/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ impl<T: GetSize> GetSize for Box<[T]> {
impl_getsize_methods_for_dyn_arr!(T);
}

#[cfg(feature = "aligned-vec")] impl <T: GetSize> GetSize for aligned_vec::ABox<[T]> {
#[cfg(feature = "aligned-vec")] impl <A: aligned_vec::Alignment, T: GetSize> GetSize for aligned_vec::ABox<[T], A> {
impl_getsize_methods_for_dyn_arr!(T);
}

Expand Down Expand Up @@ -135,7 +135,7 @@ impl<T: GetSize> GetSize for Vec<T> {
impl_getsize_methods_for_vec!(T);
}

#[cfg(feature = "aligned-vec")] impl <T: GetSize> GetSize for aligned_vec::AVec<T> {
#[cfg(feature = "aligned-vec")] impl <A: aligned_vec::Alignment, T: GetSize> GetSize for aligned_vec::AVec<T, A> {
impl_getsize_methods_for_vec!(T);
}

Expand Down

0 comments on commit 8883607

Please sign in to comment.