dani-garcia / vaultwarden

Unofficial Bitwarden compatible server written in Rust, formerly known as bitwarden_rs
GNU Affero General Public License v3.0
37.4k stars 1.82k forks source link

Switch registry cache compression algorithm to zstd #4704

Closed dfunkt closed 2 months ago

dfunkt commented 3 months ago

Quick comparison I did (vaultwarden built for 3 platforms: linux/amd64, linux/amd64/v3 and linux/arm64): gzip • No cache: 22m 7s • Cached: 11m 20s

zstd: • No cache: 19m 36s • Cached: 10m 48s

tessus commented 3 months ago

I like zstd. It's used more and more these days. It's also used as the default compression algorithm in Proxmox for backups. I ran several perf tests a while ago and zstd is way faster than gzip with the same or better compression (default values for both).

BlackDex commented 2 months ago

Thanks @dfunkt!