diff options
author | William Wilgus <me.theuser@yahoo.com> | 2017-11-09 18:03:33 +0100 |
---|---|---|
committer | William Wilgus <me.theuser@yahoo.com> | 2018-10-18 13:29:32 +0200 |
commit | b977b77fb7ea75895ac65d64d99b056d95435bfc (patch) | |
tree | 8a4ba6adeb13e2af3c975479d90a4395a1b911db /apps/playback.c | |
parent | dd40c46d50f9f22643b828e80783d3576b9c1d50 (diff) | |
download | rockbox-b977b77fb7ea75895ac65d64d99b056d95435bfc.tar.gz rockbox-b977b77fb7ea75895ac65d64d99b056d95435bfc.zip |
Optimize is_diacritic
is_diacritic is used for pretty much all of the text display sizing
Timing here matters, so important it uses a
priority buffer in order to cut down on searching the database.
This patch is verified functionally equlivalent but
saves 80 bytes and is ~20% faster for the clip+ I tested it on
Several things were done:
Optimizing the copy loop for the priority buffer
Globbing some operations together
but the main one has to do with the database structure its self
--
Rather than a bit packed struct it combines the lower 8 bytes into
one value [info] and uses flags to access the values instead
Change-Id: I475073419b647639ef1eeaa3b9213e4e1067c0db
Diffstat (limited to 'apps/playback.c')
0 files changed, 0 insertions, 0 deletions