This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#12192 - Introduce bsearch() and use it in tagtree.c.
|
Detailsbsearch() is a general purpose binary search function for arrays.
It's supposedly faster than looping over arrays. The array needs to be sorted in ascending order under the provided comparison function. If the key and array element are of the same kind, then the same compare function can be used for qsort() and bsearch(). Code taken from glibc. --- So, is anyone interested? |
This task depends upon
What does the binsize diff look like?
This should not be committed before the current DB / dircache problems are sorted out to reduce the number of moving parts while debugging. This includes FS#12175 and occasional crashes when browsing the DB (FS# forthcoming).