1
0
Fork 0
forked from len0rd/rockbox
foxbox/lib
William Wilgus b94b0d3bf4 Skin engine, optimize hot paths
callgrind identified check_viewport and scan_int as pretty hot code paths on startup
and playback

check_viewport uses strlen to check the string has at least 4 characters
we can just check if str[3] != '\0' without walking potentially much further
and no function call..

scan_int was building a buffer for atoi to parse when we can just do it in the loop
directly

Change-Id: Ie028980333cbed4c066d8ea547a89cf4fad76808
2025-02-08 00:49:28 -05:00
..
arm_support arm: Use -masm-syntax-unified when compiling with gcc8 or newer 2024-05-08 21:45:42 -04:00
fixedpoint Undo hacks to meant to get around string formatting limitations 2017-11-21 05:01:14 -05:00
libsetjmp [1/4] Remove SH support and all archos targets 2020-07-24 21:20:13 +00:00
microtar [FIX_RED] microtar.c #2 2023-11-19 13:20:35 -05:00
mipsunwinder mips: add native backtrace implementation 2022-05-22 07:16:11 -04:00
rbcodec [FixRed] Reove HAVE_PITCHCONTROL from bootloaders, fix warble 2025-01-19 01:20:58 -05:00
skin_parser Skin engine, optimize hot paths 2025-02-08 00:49:28 -05:00
tlsf [coverity] tlsf.c tlsf_malloc guard against empty mempool 2024-06-02 21:00:09 -04:00
unwarminder arm: Use -masm-syntax-unified when compiling with gcc8 or newer 2024-05-08 21:45:42 -04:00