ocarina/lib
Anna Schumaker ddbbf0ea49 playqueue: Improve insertion sort with a binary search
My test was done with a library size of 8040.

Before this patch, I make 21919628 calls to my "less_than" function.
With this patch, I now make 101205 calls to my "less than" function.

This comes out to a 216-X improvement.  I should have done this sooner.

Signed-off-by: Anna Schumaker <schumaker.anna@gmail.com>
2014-04-06 19:57:00 -04:00
..
Sconscript callbacks: Add initial callbacks 2014-04-06 19:56:58 -04:00
audio.cpp playqueue: Add a flag to disable unnecessary callbacks 2014-04-06 19:57:00 -04:00
callback.cpp deck: Save the deck whenever a queue changes 2014-04-06 19:57:00 -04:00
database.cpp database: Implement updates to match my current design 2014-04-06 19:56:57 -04:00
deck.cpp playqueue: Sort playqueues if PQ_SORTED is enabled 2014-04-06 19:57:00 -04:00
file.cpp file: Strip leading whitespace when reading strings 2014-04-06 19:56:58 -04:00
filter.cpp filter: Implement a "to lowercase" function 2014-04-06 19:56:57 -04:00
idle.cpp idle: Add an idle queue 2014-04-06 19:56:53 -04:00
library.cpp playqueue: Sort playqueues if PQ_SORTED is enabled 2014-04-06 19:57:00 -04:00
playlist.cpp errors: Rename error codes 2014-04-06 19:56:57 -04:00
playqueue.cpp playqueue: Improve insertion sort with a binary search 2014-04-06 19:57:00 -04:00