3 ms·
Björn Höhrmann wrote the gold standard for a minimalist scalar decoder and didn't depend on UB to do it: https://bjoern.hoehrmann.de/utf-8/decoder/dfa/ https:/
by kevin_thibedeau 8y ago
Björn Höhrmann wrote the gold standard for a minimalist scalar decoder and didn't depend on UB to do it:
https://bjoern.hoehrmann.de/utf-8/decoder/dfa/ https://bjoern.hoehrmann.de/utf-8/decoder/dfa/
- petermcneeley 8y agoBjörn's decoder is nearly identical to the naive validity checker found here. It is about 9x slower than the superposition lookup table found here.