Add fast path for checking iswide
I wanted to bring this up and just get your general feeling about it, but if I run a test with mpv -vo=tct
I'll spend .5% in g_unichar_iswide()
and/or g_unichar_iszerowidth()
. That might make them good candidates for inline since they have the potential to run on every character and the function call to GLib is quite expensive at that frequency.
Thoughts? If you don't mind having a copy of that stuff internal, I'd be happy to cook up a patch.