[PATCH v2 0/2] string-list: use ALLOC_GROW macro when reallocing
- From
- git@jeffhostetler.com <git@jeffhostetler.com>
- Date
- Apr 5, 2017, 21:09 UTC
- Message-ID
- <20170405210920.56549-1-git@jeffhostetler.com>
From: Jeff Hostetler <jeffhost@microsoft.com>
Use ALLOC_GROW() macro when reallocating a string_list array rather than simply increasing it by 32. This helps performance of status on very large repos on Windows.
Jeff Hostetler (2): string-list: use ALLOC_GROW macro when reallocing string_list p0005-status: time status on very large repo
string-list.c | 5 +--- t/perf/p0005-status.sh | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+), 4 deletions(-) create mode 100644 t/perf/p0005-status.sh
-- 2.9.3