1
0
Fork 0
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:
Fred Bauer 2011-10-16 20:17:44 +00:00
parent 4f3e1d6b48
commit cd0102ba14
2 changed files with 49 additions and 75 deletions

View file

@ -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 */
};