diff options
author | William Wilgus <wilgus.william@gmail.com> | 2023-02-08 07:41:22 -0500 |
---|---|---|
committer | William Wilgus <me.theuser@yahoo.com> | 2023-02-09 06:56:58 -0500 |
commit | 3bb75e00399a063ed7a7c618bfce8c136d797839 (patch) | |
tree | 15f5e78f184ad5c94243686b1ebfddcef4b406ae /manual/appendix | |
parent | 23cb6139bdd3c12d0262916583726ad9d49caf67 (diff) | |
download | rockbox-master.tar.gz rockbox-master.zip |
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