[PATCH v1 0/2] string-list: use ALLOC_GROW macro when reallocing
- From
- git@jeffhostetler.com <git@jeffhostetler.com>
- Date
- Apr 5, 2017, 19:55 UTC
- Message-ID
- <20170405195600.54801-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 | 6 ++--- t/perf/p0005-status.sh | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+), 4 deletions(-) create mode 100644 t/perf/p0005-status.sh
-- 2.9.3