]> git.ipfire.org Git - thirdparty/zstd.git/commit
accelerate versionsCompatibilityTest
authorYann Collet <yann.collet.73@gmail.com>
Sun, 29 Aug 2021 21:48:11 +0000 (14:48 -0700)
committerYann Collet <yann.collet.73@gmail.com>
Sun, 29 Aug 2021 21:48:11 +0000 (14:48 -0700)
commit7f37b8a547e960e58dd3c247925a66dcb0412f77
tree9f643f56b7ef38921181ded7c8f914f5bba838ed
parentef6953984954dbb5dd333d277a5700ff35df6781
accelerate versionsCompatibilityTest

by allowing parallel build of units,
and reducing optimization levels.

Parallel build is only effective on "recent" versions of `zstd`,
as previously, the list of units was passed as a list of source files,
which is something neither `make` nor `gcc` can parallelize.
So its impact is mildly effective (-20%).

Reducing optimization level to `-O1` makes compilation much faster.
It also makes runtime slower,
but in this test, compilation time dominates run time.
The savings are very significant (-50%).

On my test system, it reduces the length of this test from 13mn to 5mn.
tests/test-zstd-versions.py