diff options
author | Tay Ray Chuan <rctay89@gmail.com> | 2011-07-12 14:10:26 +0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-07-12 09:29:39 -0700 |
commit | 9f37c275938e1fbca7165872dad039874add09cd (patch) | |
tree | 543b905ac5da05640742b96becbcecd8423a3815 /patch-delta.c | |
parent | teach --histogram to diff (diff) | |
download | tgif-9f37c275938e1fbca7165872dad039874add09cd.tar.xz |
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 'patch-delta.c')
0 files changed, 0 insertions, 0 deletions