summaryrefslogtreecommitdiff
path: root/compat/terminal.h
diff options
context:
space:
mode:
authorLibravatar Karsten Blees <blees@dcon.de>2014-07-17 17:38:02 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-07-21 09:32:49 -0700
commitf279242d5e3f17e01e1d70010c4f072798899a47 (patch)
treeab6c63222623589d1ba5b57fe00a3a07685b89b1 /compat/terminal.h
parentWin32: don't copy the environment twice when spawning child processes (diff)
downloadtgif-f279242d5e3f17e01e1d70010c4f072798899a47.tar.xz
Win32: reduce environment array reallocations
Move environment array reallocation from do_putenv to the respective callers. Keep track of the environment size in a global variable. Use ALLOC_GROW in mingw_putenv to reduce reallocations. Allocate a sufficiently sized environment array in make_environment_block to prevent reallocations. Signed-off-by: Karsten Blees <blees@dcon.de> Signed-off-by: Stepan Kasal <kasal@ucw.cz> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat/terminal.h')
0 files changed, 0 insertions, 0 deletions