forked from len0rd/rockbox
font_cache.c: Optimize and simplify cache search. ~25% font rendering boost
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30763 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
4f3e1d6b48
commit
cd0102ba14
2 changed files with 49 additions and 75 deletions
|
|
@ -29,6 +29,8 @@ struct font_cache
|
|||
struct lru _lru;
|
||||
int _size;
|
||||
int _capacity;
|
||||
int _prev_char_code;
|
||||
int _prev_result;
|
||||
short *_index; /* index of lru handles in char_code order */
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue