summaryrefslogtreecommitdiff
path: root/t/helper/test-mergesort.c
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2020-12-01 21:47:56 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-12-02 14:27:08 -0800
commita0c5ccc1c01597821a8ec09a359f4522bdd55807 (patch)
tree1d7acb8964cf48928c725ffc933df4ba5a5df108 /t/helper/test-mergesort.c
parentmaintenance: add incremental-repack auto condition (diff)
downloadtgif-a0c5ccc1c01597821a8ec09a359f4522bdd55807.tar.xz
t7900: speed up expensive test
A test marked with EXPENSIVE creates two 2.5GB files and adds them to the repository. This takes 194s to run on my machine, versus 2s when the EXPENSIVE prereq isn't set. We can trim this down a bit by doing two things: - use "git commit --quiet" to avoid spending time generating a diff summary (this actually only helps for the second commit, but I've added it here to both for consistency). This shaves off 8s. - set core.compression to 0. We know these files are full of random bytes, and so won't compress (that's the point of the test!). Spending cycles on zlib is pointless. This shaves off 122s. After this, my total time to run the script is 64s. That won't help normal runs without GIT_TEST_LONG set, of course, but it's easy enough to do. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper/test-mergesort.c')
0 files changed, 0 insertions, 0 deletions