From 8379c6eb07e7daf26ca74aac7f46c4e331743d84 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Wed, 23 Nov 2022 10:56:50 -0500 Subject: [PATCH] tagtree remove unneeded strlen unfortunately most of the overhead in searching for 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 --- apps/tagtree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/tagtree.c b/apps/tagtree.c index a3c364b875..8e7b868dbc 100644 --- a/apps/tagtree.c +++ b/apps/tagtree.c @@ -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 */