Re: [PATCH v5 4/4] read-cache: speed up add_index_entry during checkout
- From
SZEDER Gábor <szeder.dev@gmail.com>
- Date
- Apr 5, 2017, 22:54 UTC
- Message-ID
- <20170405225453.2632-1-szeder.dev@gmail.com>
- In-Reply-To
- <20170405173809.3098-5-git@jeffhostetler.com>
Show 8 quoted lines
> Teach add_index_entry_with_check() and has_dir_name() > to see if the path of the new item is greater than the > last path in the index array before attempting to search > for it. > > During checkout, merge_working_tree() populates the new > index in sorted order, so this change saves at least 2 > lookups per file.
I think the performance numbers from the cover letter should be included here, so they will be included in the history.
> Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>