summaryrefslogtreecommitdiffstats
path: root/manual/appendix
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2023-02-08 07:41:22 -0500
committerWilliam Wilgus <me.theuser@yahoo.com>2023-02-09 06:56:58 -0500
commit3bb75e00399a063ed7a7c618bfce8c136d797839 (patch)
tree15f5e78f184ad5c94243686b1ebfddcef4b406ae /manual/appendix
parent23cb6139bdd3c12d0262916583726ad9d49caf67 (diff)
downloadrockbox-master.tar.gz
rockbox-master.zip
tagtree.c optimize get_tag()HEADmaster
store tag length to shortcut strcmp this is nearly as fast as making a hash table using gperf its not the hottest path but its even slightly faster to shortcut based on string length if (tagstr_len > match->len) continue; else if (tagstr_len < match->len) break; but I found no measurable difference I don't think its worth the extra constraint of keeping tags sorted Change-Id: I4bb47cc6c5b8266d5f13c4ac78ae11d55ecb2d67
Diffstat (limited to 'manual/appendix')
0 files changed, 0 insertions, 0 deletions