Skip to content

frame compressor uses CompressTable#208

Open
matthewfollegot wants to merge 1 commit into
PSeitz:mainfrom
matthewfollegot:main
Open

frame compressor uses CompressTable#208
matthewfollegot wants to merge 1 commit into
PSeitz:mainfrom
matthewfollegot:main

Conversation

@matthewfollegot

Copy link
Copy Markdown
Contributor

Follow-up to #207. The frame compressor can utilize the CompressTable which will start out with HashTable4KU16 and will grow to HashTable4K when needed, optimizing for small blocksizes.

Comment thread src/block/compress.rs
Comment on lines +753 to +758
pub fn reposition(&mut self, offset: u32) {
match self {
CompressTable::Large(t) => t.reposition(offset),
CompressTable::Small(_) => panic!("reposition is not supported on small tables"),
}
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@PSeitz I'm thinking we should just remove this as it seems to be dead code for HashTable4K anyway https://github.com/matthewfollegot/lz4_flex/blob/c68d8896f9ea62683548edb6d50db57749043e1a/src/block/hashtable.rs#L119C12-L119C22. Wdyt?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant