attempt to make Appveyor's Cygwin test faster #2623
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Cygwin is the longest Appveyor test.
Appveyor is typically the CI which finishes last, and therefore our limiting factor,
presumably because it doesn't parallelize its workload.
Longer term, we should considering transferring some of these tests to github actions,
where parallelization is more effective.
edit : well, this attempt is not greatly effective.
The tests are running noticeably faster, saving > 70 seconds,
but gains are more than offset by extended compilation duration,
likely due to
-O1
(instead of "default", aka-O0
).That's unexpected, I was not expecting
-O1
to make such a large difference.edit 2 : tested on my local workstation
compilation of
zstd
costs about ~x4 more time at-O1
than at-O0
.clang
is slightly faster thangcc
(about -10%), but it doesn't change the overall picture.edit 3 : so I scaled back ambitions, and got after the easy wins,
saving approximately 20 sec to Cygwin tests, which is very little.
I'm now wondering if the majority of the delay rather comes from initial package installation.
I see in traces that there are 114 packages being updated before any test actually begins.
That seems like a lot, and is most likely source of substantial delays.
To be investigated, in a separate PR.