mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
Tagcache - Ramcache Move ref checks, speed up disk searches
move loading file reference to a separate function some optimization of the disk search function check tag length before reading the actual entry & reduce number of lseek calls this affects startup resume as well before tagcache is done loading Change-Id: I2bd2fc53c4870416ecd1a4034b34cb6984d8ad51
This commit is contained in:
parent
1025283042
commit
d6fb80d4ff
3 changed files with 228 additions and 169 deletions
|
|
@ -1661,7 +1661,7 @@ entry_skip_formatter:
|
|||
break ;
|
||||
}
|
||||
|
||||
if (init && !tcs.ramsearch)
|
||||
if (init)
|
||||
{
|
||||
if (!show_search_progress(false, total_count))
|
||||
{ /* user aborted */
|
||||
|
|
@ -1697,11 +1697,8 @@ entry_skip_formatter:
|
|||
|
||||
while (tagcache_get_next(&tcs))
|
||||
{
|
||||
if (!tcs.ramsearch)
|
||||
{
|
||||
if (!show_search_progress(false, total_count))
|
||||
break;
|
||||
}
|
||||
if (!show_search_progress(false, total_count))
|
||||
break;
|
||||
total_count++;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue