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:
William Wilgus 2023-01-18 10:22:36 -05:00
parent 1025283042
commit d6fb80d4ff
3 changed files with 228 additions and 169 deletions

View file

@ -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++;
}