optional memcmp, last-superseq optimizations

This commit is contained in:
2025-10-30 13:35:42 -07:00
parent 8651f62c6b
commit 64a027481c
3 changed files with 71 additions and 6 deletions
+5 -3
View File
@@ -15,8 +15,8 @@ fn main() {
let header = &rply.header;
println!("{header:?}");
let mut header_out = header.clone();
header_out.set_block_size(64);
header_out.set_superblock_size(32);
header_out.set_block_size(128);
header_out.set_superblock_size(128);
let mut out = encode(header_out, &rply.initial_state, &mut outfile).unwrap();
let mut frame = Frame::default();
while let Ok(()) = rply
@@ -47,7 +47,7 @@ fn main() {
Timer::DecodeFrame,
Timer::DecodeCheckpoint,
Timer::DecodeStatestream,
Timer::EncodeStatestream,
Timer::EncodeFrame,
Timer::EncodeCheckpoint,
Timer::EncodeStatestream,
] {
@@ -57,6 +57,8 @@ fn main() {
println!("{timer:?}: {} ({avg_time:.8}ms avg)", times.count,);
}
for counter in [
Counter::DecSkippedSuperblocks,
Counter::DecSkippedBlocks,
Counter::EncReusedBlocks,
Counter::EncReusedSuperblocks,
Counter::EncSkippedBlocks,