forked from len0rd/rockbox
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 |
||
---|---|---|
.. | ||
Makefile | ||
skin_buffer.c | ||
skin_buffer.h | ||
skin_buffer_debug.pl | ||
skin_debug.c | ||
skin_debug.h | ||
skin_parser.c | ||
skin_parser.h | ||
skin_parser.make | ||
skin_scan.c | ||
skin_scan.h | ||
SOURCES | ||
symbols.h | ||
tag_table.c | ||
tag_table.h |