You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using memcpy lets us process the input regardless of alignment, avoiding the byte-by-byte loop up to the next aligned address. This speeds up short runs and simplifies the code.
Use SIMD to decode consecutive UTF-8 characters of the same byte length.
Decode short strings into a stack buffer instead of counting their code points first.
Use unicode_char() when the input decodes to a single character.
Activity
[-]optimize UTF-8 decode[/-][+]Optimize UTF-8 decode[/+]picnixz commentedon Dec 4, 2026
Can you avoid that as the first iteration? the core dev team is still debating whether to add SIMD in general (see #124951 for instance).