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.
Showing
Please
register
or
sign in
to comment