summaryrefslogtreecommitdiff
path: root/t/t6003-rev-list-topo-order.sh
diff options
context:
space:
mode:
authorLibravatar Johannes Schindelin <Johannes.Schindelin@gmx.de>2008-12-20 13:05:47 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-01-11 19:17:45 -0800
commit2dd625d022074bb677bdd5caa5146cabaf726123 (patch)
treefabcf925aed516dc9054d9b9050f13188d084f74 /t/t6003-rev-list-topo-order.sh
parentAdd a script to edit/inspect notes (diff)
downloadtgif-2dd625d022074bb677bdd5caa5146cabaf726123.tar.xz
Speed up git notes lookup
To avoid looking up each and every commit in the notes ref's tree object, which is very expensive, speed things up by slurping the tree object's contents into a hash_map. The idea fo the hashmap singleton is from David Reiss, initial benchmarking by Jeff King. Note: the implementation allows for arbitrary entries in the notes tree object, ignoring those that do not reference a valid object. This allows you to annotate arbitrary branches, or objects. [jc: fixed an obvious error in initialize_hash_map()] Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t6003-rev-list-topo-order.sh')
0 files changed, 0 insertions, 0 deletions