Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: compress_noci benchmark broken on develop #1450

Merged
merged 2 commits into from
Nov 22, 2024

Conversation

lwwmanning
Copy link
Member

@lwwmanning lwwmanning commented Nov 22, 2024

was accidentally broken in #1430

@lwwmanning lwwmanning enabled auto-merge (squash) November 22, 2024 14:41
if let Some(cc) = ConstantCompressor.can_compress(array) {
return cc.compress(array, None, self.clone());
// short-circuit because seriously nothing beats constant
if self.is_enabled(&ConstantCompressor) && ConstantCompressor.can_compress(array).is_some() {
Copy link
Member

Choose a reason for hiding this comment

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

Was the brokeness here that we disabled the compressor and looped forever?

Copy link
Member Author

Choose a reason for hiding this comment

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

no, it was that we disabled ConstantCompressor when compressing FSST codes (since we only want to compress the offsets inside the codes VarBin), but this ignored that. FSST::try_new requires codes to have VarBin encoding

@lwwmanning lwwmanning merged commit 75b9a60 into develop Nov 22, 2024
14 checks passed
@lwwmanning lwwmanning deleted the wm/fix-compress-bench branch November 22, 2024 14:57
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.

3 participants