This is based on information in this commit where lzma is a factor 10x slower time wise.
The "11 minutes to compress" is a surprising to me,
running the `xz` command it is around 1 minute to compress a artifact of the same size as mentioned in above commit.
Would be interesting to investigate why the there is a factor 10x when using mender-artifact. I suspect that we are not utilizing parallelism which the `-T 0` flag indicates in my command which means utilize all available CPU cores. I have also tried setting the highest compression preset (`-9`) but it still takes around 3 minutes.
Note that I copied the command arguments from Yocto, and how it is producing `xz` compressed artifacts.
Would be interesting to investigate the following on our end:
- which compression preset are we using (this can heavily impact memory usage and can be a problem on constraint devices if we are using a "high" preset)
- are we using parallelism? If not, is it possible?