summaryrefslogtreecommitdiff
path: root/src/revwalk.c
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2014-02-04 16:46:43 -0800
committerRussell Belfer <rb@github.com>2014-02-04 16:46:43 -0800
commit1bbacc9ff617b67831dbfce5e1b04e1bd8571aa0 (patch)
treedcc83883b0bc0223378408a79b267047930526b4 /src/revwalk.c
parent43709ca87811efc3c237eb719611f025502f3928 (diff)
downloadlibgit2-1bbacc9ff617b67831dbfce5e1b04e1bd8571aa0.tar.gz
Avoid extra copying in pqueue operations
This tweaks the pqueue_up and pqueue_down routines so that they will not do full element swaps but instead carry over the state of the previous loop iteration and only assign elements for which we know the final position. This will avoid a little bit of data assignment which should improve performance in theory. Also got rid of some vector helpers that I'm no longer using.
Diffstat (limited to 'src/revwalk.c')
0 files changed, 0 insertions, 0 deletions