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

Switch default compression algorithm to lz4 #135

Merged
merged 1 commit into from
May 20, 2023
Merged

Switch default compression algorithm to lz4 #135

merged 1 commit into from
May 20, 2023

Conversation

emilk
Copy link
Collaborator

@emilk emilk commented May 13, 2023

Checklist

  • I have read the Contributor Guide
  • I have read and agree to the Code of Conduct
  • I have added a description of my changes and why I'd like them included in the section below

Description of Changes

lz4_flex is a light-weight Rust-only dependency.
It compiles and runs much faster than zstd, and it supports compression in wasm.

zstd compresses better, so you can still opt-in to it with the "zstd" feature.

For most puffin users the effect will be faster compilation time and less CPU usage (about a third of zstd). Benchmarks can be found here: #130 (comment)

Users of puffin must update their puffin_viewers, but the new puffin_viewer will still be able to open old puffin streams.

lz4_flex is a light-weight Rust-only dependency.
It compiles and runs much faster than zstd.

zstd compresses better, so you can still opt-in to it with
the "zstd" feature.

The new puffin streams will be incompatible with old puffin_viewer's

puffin_viewer will still be able to open old puffin streams.
@emilk emilk merged commit 768763d into main May 20, 2023
@emilk emilk deleted the emilk/lz4 branch May 20, 2023 08:44
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.

2 participants