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

Default to a sensible zstd compression level #42

Closed
probonopd opened this issue Feb 14, 2024 · 6 comments
Closed

Default to a sensible zstd compression level #42

probonopd opened this issue Feb 14, 2024 · 6 comments

Comments

@probonopd
Copy link
Member

Default to a sensible zstd compression level to improve application startup times. Data:

AppImage/AppImageKit#478 (comment)

@TheAssassin
Copy link
Member

Define "sensible".

@probonopd
Copy link
Member Author

probonopd commented May 5, 2024

A reasonably good tradeoff between

  • Good compression
  • Fast application startup times
  • High zsync efficiency

Did I miss something?

@Samueru-sama
Copy link
Contributor

I think this issue can be closed, it ended up being the issue of the default block size, even back then I noticed that there was something other than the compression level at play.

Now librewolf takes:

  • 2.5 seconds with the original gzip that the official appimage comes with (111.1 MiB)
  • 1.9 seconds with zstd level 20 (100.9 MiB)
  • 1.7 seconds with zstd level 1 (124 MiB)

The difference between zstd 1 and 20 is 0.2 seconds, in other words it really isn't a big deal that zstd 15 is the default being used.

And native non appimage librewolf takes 0.9 seconds to start, so the overhead of the appimage is less than 1 second for my old broadwell cpu.

@probonopd
Copy link
Member Author

@adrianinsaval
Copy link

I think this issue can be closed, it ended up being the issue of the default block size, even back then I noticed that there was something other than the compression level at play.

so how are you making your appimages now? Or has the default blocksize been changed in appimagetol?

@Samueru-sama
Copy link
Contributor

I think this issue can be closed, it ended up being the issue of the default block size, even back then I noticed that there was something other than the compression level at play.

so how are you making your appimages now? Or has the default blocksize been changed in appimagetol?

It was changed here.

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

No branches or pull requests

4 participants