Green-Software-Foundation / Green-Software-Foundation/patterns
For Data Compression use ZTSD instead of gzip
- Dominant language
- TypeScript
- Stars
- 145
- Forks
- 44
- Avg merge
- 13d 22h
- Merged PRs (30d)
- 1
Description
**Describe the pattern you'd like to propose**
Compressing and decompressing files creates overheads in time and energy usage. It takes time/energy to compress the file, send it and uncompress it.
Replacing gzip with ZSTD offers a reduction in compression size and compression timing. See numerical compression results in referenced blog post.
**Describe specific emission impact from this pattern**
Regarding SCI = ((E *I) * M) per R, parameter E will decline were gzip replaced with ztsd - quicker compression/decompression times and quicker transmission over a network (due to smaller file size) will result in less E consumed by the software.
**References to this pattern**
See blog post: https://lemire.me/blog/2021/06/30/compressing-json-gzip-vs-zstd/
**Additional context**
Similar issue: https://github.com/vitejs/vite/issues/5295
Contributor guide
Assessment
This issue has not been assessed yet.