You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure why x/mod/zip only makes the sub-tests parallel.
Two of these tests deal with very large zip files,
but they don't create those large files in in-memory buffers;
the Create test writes to io.Discard, and Unzip uses temporary files.
Moreover, their subtests were already parallel, so we were already
creating multiple such large files at once anyway.
This helps slightly with `go test`, dropping from 2.9s to 1.6s
while CPU usage increases from 150% to 280% on my laptop.
The real difference is with `go test -race`, which we use in CI:
I see a drop from 80s to 43s, again using multiple CPUs better.
Signed-off-by: Daniel Martí <[email protected]>
Change-Id: I92cd8828ae2b11a7b83568c6145e020e3b54d754
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1170018
Unity-Result: CUE porcuepine <[email protected]>
TryBot-Result: CUEcueckoo <[email protected]>
Reviewed-by: Roger Peppe <[email protected]>
0 commit comments