Re: [PATCH v9 3/3] read-cache: speed up add_index_entry during checkout

2017-04-14 Thread Jeff Hostetler
On 4/11/2017 11:12 PM, Junio C Hamano wrote: g...@jeffhostetler.com writes: From: Jeff Hostetler 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, me

Re: [PATCH v9 3/3] read-cache: speed up add_index_entry during checkout

2017-04-11 Thread Junio C Hamano
g...@jeffhostetler.com writes: > From: Jeff Hostetler > > 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

[PATCH v9 3/3] read-cache: speed up add_index_entry during checkout

2017-04-11 Thread git
From: Jeff Hostetler 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 will sa