tagtree remove unneeded strlen
unfortunately most of the overhead in searching for <Untagged> occurs in reading of entries so changing searching the resulting string faster doesn't do much good but any we don't need this strlen call since its already been computed Change-Id: Ia2815a6e7d75237366977632f9b0bc7999254096
This commit is contained in:
parent
ec1611dfa6
commit
8379c6eb07
1 changed files with 1 additions and 1 deletions
|
@ -1589,7 +1589,7 @@ static int retrieve_entries(struct tree_context *c, int offset, bool init)
|
|||
if (tagcache_retrieve(&tcs, tcs.idx_id, tag_filename, dptr->name,
|
||||
c->cache.name_buffer_size - namebufused))
|
||||
{
|
||||
namebufused += strlen(dptr->name)+1;
|
||||
namebufused += tcs.result_len;
|
||||
goto entry_skip_formatter;
|
||||
}
|
||||
dptr->name = lastname; /* restore last entry if filename failed */
|
||||
|
|
Loading…
Reference in a new issue