xdiff/xprepare: skip classification
commit9f37c275938e1fbca7165872dad039874add09cd
authorTay Ray Chuan <rctay89@gmail.com>
Tue, 12 Jul 2011 06:10:26 +0000 (12 14:10 +0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 12 Jul 2011 16:29:39 +0000 (12 09:29 -0700)
tree543b905ac5da05640742b96becbcecd8423a3815
parent8c912eea94a2138e8bc608f7c390eb0b313effb0
xdiff/xprepare: skip classification

xdiff performs "classification" of records (xdl_classify_record()),
replacing hashes (xrecord_t.ha) with a unique identifier of the
record/line and building a hash table (xrecord_t.rhash) of records. This
is then used to "cleanup" records (xdl_cleanup_records()).

We don't need any of that in histogram diff, so we omit calls to these
functions. We also skip allocating memory to the hash table, rhash, as
it is no longer used.

This gives us a small boost in performance.

Signed-off-by: Tay Ray Chuan <rctay89@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
xdiff/xprepare.c