stores: bloom filters back to default due to slow reads, v3 will bring down the needed RAM

This commit is contained in:
nym21
2025-07-13 16:49:45 +02:00
parent d6fa5c8a55
commit d41d807b4f
3 changed files with 7 additions and 3 deletions

View File

@@ -12,12 +12,12 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
let _ = fs::remove_file("./vec");
let version = Version::TWO;
let format = Format::Compressed;
let format = Format::Raw;
{
let mut vec: VEC = StoredVec::forced_import(Path::new("."), "vec", version, format)?;
(0..4_u32).for_each(|v| {
(0..21_u32).for_each(|v| {
vec.push(v);
});
@@ -42,6 +42,9 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
dbg!(iter.get(0.into()));
dbg!(iter.get(1.into()));
dbg!(iter.get(2.into()));
dbg!(iter.get(3.into()));
dbg!(iter.get(4.into()));
dbg!(iter.get(5.into()));
dbg!(iter.get(20.into()));
dbg!(iter.get(20.into()));
dbg!(iter.get(0.into()));

View File

@@ -147,6 +147,7 @@ impl HeaderInner {
{
return Err(Error::DifferentCompressionMode);
}
Ok(header)
}
}

View File

@@ -66,7 +66,7 @@ where
} else {
(
Header::import_and_verify(&mut file, version, Format::Raw)?,
None,
Some(file),
)
}
}