Re: [PATCH v4 1/2] string-list: use ALLOC_GROW macro when reallocing string_list

2017-04-11 Thread Jonathan Nieder
g...@jeffhostetler.com wrote: > During status on a very large repo and there are many changes, > a significant percentage of the total run time is spent > reallocing the wt_status.changes array. > > This change decreases the time in wt_status_collect_changes_worktree() > from 125 seconds to 45 sec

[PATCH v4 1/2] string-list: use ALLOC_GROW macro when reallocing string_list

2017-04-11 Thread git
From: Jeff Hostetler 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 is spent reallocing the wt_st