]> git.ipfire.org Git - thirdparty/git.git/commit
patience diff: remove unnecessary string comparisons
authorPhillip Wood <phillip.wood@dunelm.org.uk>
Tue, 4 May 2021 09:25:44 +0000 (09:25 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 5 May 2021 09:56:48 +0000 (18:56 +0900)
commit204aa2d24d83f308ef1ab128b1a7722daf9cfd56
tree3a1f19c86ef6ef3b840f9526b93c371348c20931
parente4f4299859610638e45ec1a36266973b9a4eb47a
patience diff: remove unnecessary string comparisons

xdl_prepare_env() calls xdl_classify_record() which arranges for the
hashes of non-matching lines to be different so lines can be tested
for equality by comparing just their hashes.

This reduces the time taken to calculate the diff of v2.28.0 to
v2.29.0 by ~3-4%.

Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
xdiff/xpatience.c