HeatherComputer / AdvancedBackups

BSD 3-Clause "New" or "Revised" License
33 stars 5 forks source link

Feature request : Support optional compression algorithm like zstd #90

Open AnterCreeper opened 1 week ago

AnterCreeper commented 1 week ago

for saving CPU time. in my test, zstd cost 5 seconds (level 1) vs zip cost 1min51s (level 1) all from 4.2G origin data to 3.4G

test commands: time ZSTD_CLEVEL=1 ZSTD_NBTHREADS=8 tar --zstd -cvf world.1.tar.zstd ./world time zip -1 -r world.zip ./world

AnterCreeper commented 1 week ago

some other testing: time 7z a -r -mx=1 world.zip world/* cost 1m3s zstd single thread: time ZSTD_CLEVEL=1 ZSTD_NBTHREADS=1 tar --zstd -cvf world.1.tar.zstd ./world cost 7.5seconds