diff options
author | Russell Belfer <rb@github.com> | 2014-02-04 16:46:43 -0800 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2014-02-04 16:46:43 -0800 |
commit | 1bbacc9ff617b67831dbfce5e1b04e1bd8571aa0 (patch) | |
tree | dcc83883b0bc0223378408a79b267047930526b4 /include/git2/commit.h | |
parent | 43709ca87811efc3c237eb719611f025502f3928 (diff) | |
download | libgit2-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 'include/git2/commit.h')
0 files changed, 0 insertions, 0 deletions