Show HN: Zip-sizer – A tool to estimate the compressed size of large archives

https://github.com/arunsupe/zip-sizer
by arunsupe • 1 year ago
3 0 1 year ago

Introducing zip-sizer, a small CLI, to estimate compressed sizes of directories. It works by choosing a representative sample of the data, compressing it in memory and forming an estimate. It is designed to work on very large archives. Fast and memory-efficient. Estimates for gzip/bzip2 algorithms. Error ~2.5% in my testing.

Feedback welcome.

Related Stories

Loading related stories...

Source preview

github.com