summaryrefslogtreecommitdiffstats
path: root/libass/ass_fontselect.c
diff options
context:
space:
mode:
authorrcombs <rcombs@rcombs.me>2020-08-30 13:09:20 -0500
committerrcombs <rcombs@rcombs.me>2020-08-30 22:45:37 -0500
commitb3f9022b04ddf8872b99c28dd358d89e94dea12d (patch)
treeb302ac0d627e46d833ccc6bf1734151c48fbd04a /libass/ass_fontselect.c
parent12cf524b831289cf67ba3432264fa01a69c3bbb5 (diff)
downloadlibass-b3f9022b04ddf8872b99c28dd358d89e94dea12d.tar.bz2
libass-b3f9022b04ddf8872b99c28dd358d89e94dea12d.tar.xz
ass_parse: improve performance of tag name comparisons
Yes, this actually makes a major difference on some tag-heavy scripts. This lets the whole function get inlined, rather than making a call out to the libc's strcmp implementation. The libc's version is likely much faster on longer strings, but we're only ever comparing against strings that are a few characters long, so that doesn't really matter. It also avoids making an extra pass for the strlen.
Diffstat (limited to 'libass/ass_fontselect.c')
0 files changed, 0 insertions, 0 deletions