rnote
rnote copied to clipboard
zstd with parallelism instead of gzip
https://github.com/anesthetice/rnote-compression-benchmarking/
From the compression methods tested, zstd seems to be a better choice for the rnote file format:
- Better compression ratio
- Faster reads + writes
- Simple multi-threading
Implementation went smoother than what I expected, rnote can still decompress gzip files and will compress them using zstd the next time the file is saved. One thing left to discuss I think is, should we expose the compression level to users?
Here's a rough before and after comparison of a couple files (different to the ones used for rnote-comp-benchmarking)
Before:
After:
Amazing work, that is exactly what I was talking about. Thanks, for looking into this! Looks like it's definitely worth considering. :)
converted this to a draft, to focus on an updated file format
closing this to de-clutter, see https://github.com/flxzt/rnote/pull/1177