summaryrefslogtreecommitdiff
path: root/xdiff/xutils.c
diff options
context:
space:
mode:
authorTay Ray Chuan <rctay89@gmail.com>2011-07-12 06:10:26 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-07-12 16:29:39 (GMT)
commit9f37c275938e1fbca7165872dad039874add09cd (patch)
tree543b905ac5da05640742b96becbcecd8423a3815 /xdiff/xutils.c
parent8c912eea94a2138e8bc608f7c390eb0b313effb0 (diff)
downloadgit-9f37c275938e1fbca7165872dad039874add09cd.zip
git-9f37c275938e1fbca7165872dad039874add09cd.tar.gz
git-9f37c275938e1fbca7165872dad039874add09cd.tar.bz2
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>
Diffstat (limited to 'xdiff/xutils.c')
0 files changed, 0 insertions, 0 deletions