summaryrefslogtreecommitdiff
path: root/tests/diff/pathspec.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2014-05-08 22:31:59 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2014-05-08 22:40:13 +0200
commit2dde1e0c1c398708d6a84763015e690f23cc7511 (patch)
tree46a0560de9c30a121597f208f6b5a9e4c7a4f3f7 /tests/diff/pathspec.c
parented476c236b8328c31acb150ee69eaf00c821b9e3 (diff)
downloadlibgit2-2dde1e0c1c398708d6a84763015e690f23cc7511.tar.gz
indexer: avoid memory movescmn/indexer-vector-handling
Our vector does a move of the rest of the array when we remove an item. Doing this repeatedly can be expensive, and we do this a lot in the indexer. Instead, set the value to NULL and skip those entries. perf reported around 30% of `index-pack` time was going into memmove. With this change, that goes away and we spent most of the time hashing and inflating data.
Diffstat (limited to 'tests/diff/pathspec.c')
0 files changed, 0 insertions, 0 deletions