mirror of
https://github.com/git/git.git
synced 2026-01-28 19:41:36 +00:00
Use ALLOC_GROW() macro when reallocing a string_list array rather than simply increasing it by 32. This is a performance optimization. During status on a very large repo and there are many changes, a significant percentage of the total run time was spent reallocing the wt_status.changes array. This change decreased the time in wt_status_collect_changes_worktree() from 125 seconds to 45 seconds on my very large repository. Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
7.3 KiB
7.3 KiB