Leverage multi-threading when compressing files
Speed up the compression by using multiple cores, if available. Even just using 2 cores might already cut the time needed in half.
See this SO question to get an idea what's technically possible.
For XZ compression, it might be as easy as setting the -T
argument, I don't know. I tried setting the XZ_DEFAULTS
env var, but it didn't affect Nautilus unfortunately, only the CLI.
Possible drawbacks
More RAM needed maybe? One might not want to use all cores anyway to keep the PC more responsive, so maybe use only (max cores)-1
. Some who are used to compression using only 1 core might be running multiple compression jobs in parallel, thinking it helps reduce overall time.
Edited by DanMan