@clarfonthey @ireneista on further reflection, I'm not sure I understood this reply. that doesn't have anything to do with SIMD, right? if you switch from indexing a state transition table using the next 8 bits to using the next 32 bits and jumping four state transitions ahead at a time, then sure, you've made your tables much bigger, but are there SIMD tricks that apply there?
for the specific case of UTF-8, the only SIMD-ish thing I can think of is doing a parallel "count leading ones" over many bytes at once to compress the possible state transitions to three bits per byte, so that taking multiple transitions at once like you suggest is feasible without such giant tables