summaryrefslogtreecommitdiff
path: root/src/commit.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2012-03-04 03:00:35 +0100
committerCarlos Martín Nieto <carlos@cmartin.tk>2012-04-12 20:25:25 +0200
commitf9e4bfa39ba4042c107ee93a22fb0e50ef982d5b (patch)
treefa580a834c2c0d0aff6ad524756d11322bc0ac21 /src/commit.c
parent5cf7bccd2b72582186963f8758e883e0a978041a (diff)
downloadlibgit2-f9e4bfa39ba4042c107ee93a22fb0e50ef982d5b.tar.gz
revwalk: use a priority queue for calculating merge bases
As parents are older than their children, we're appending to the commit list most of the time, which makes an ordered linked list quite inefficient. While we're there, don't sort the results list in the main loop, as we're sorting them afterwards and it creates extra work.
Diffstat (limited to 'src/commit.c')
0 files changed, 0 insertions, 0 deletions