Skip to contentSkip to conversation

Bypass expensive content comparsion during rename detection

PATCH Junio C Hamano 2 participants 2 messages Aug 11, 2016

lore
Share & tools
lore
#0 lore raw

estimate_similarity() is called after it has determined that one and two do not match exactly, and it relies on populate_filespec with at least size-only has been called on them so that it can reject filepair with vastly different sizes, still without looking at (thus without loading) the contents.

#1 lore raw
Quoted 5 lines · Junio C Hamano

estimate_similarity() is called after it has determined that one and two do not match exactly, and it relies on populate_filespec with at least size-only has been called on them so that it can reject filepair with vastly different sizes, still without looking at (thus without loading) the contents.

*ouch* That hurts. OK, it makes a lot of sense, but its crazy. About as crazy as the comment I put in my revised patch... ;-)