mathiasbynens/dotfiles — pull request #199 by mathiasbynens (2013-04-29 15:12:53+00:00)
Title: .functions: Make `targz` better

Idea: Would be cool if `targz foo` would create `foo.tar`, then check its file size, and then use it to decide wether to use `zopfli` or `gzip`. Anything over, say, 50 MB, should probably use gzip. Zopfli is great for small files, but quickly becomes too slow as file size increases.

@alrra suggested using fewer Zopfli iterations (`15` is the default) but I’m not sure about that, as it would minimize the benefit.

@einars suggested using pigz, the fast gzip-compat multithreaded compressor™.