summaryrefslogtreecommitdiff
path: root/help.h
diff options
context:
space:
mode:
authorLibravatar Johannes Schindelin <johannes.schindelin@gmx.de>2021-11-02 15:46:05 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-11-03 11:22:26 -0700
commitdf7000cd910a5f6991f73991b87d838a5d75e2fc (patch)
treec86f0b59fd5f40fdbb7fdecf80ce4058b6cf9767 /help.h
parenttest-genzeros: allow more than 2G zeros in Windows (diff)
downloadtgif-df7000cd910a5f6991f73991b87d838a5d75e2fc.tar.xz
test-tool genzeros: generate large amounts of data more efficiently
In this developer's tests, producing one gigabyte worth of NULs in a busy loop that writes out individual bytes, unbuffered, took ~27sec. Writing chunked 256kB buffers instead only took ~0.6sec This matters because we are about to introduce a pair of test cases that want to be able to produce 5GB of NULs, and we cannot use `/dev/zero` because of the HP NonStop platform's lack of support for that device. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'help.h')
0 files changed, 0 insertions, 0 deletions