r/cpp • u/User_Deprecated • Sep 30 '26
Transcoding UTF-8 to UTF-16 with replacement at gigabytes per second
https://lemire.me/blog/2026/09/30/transcoding-utf-8-to-utf-16-with-replacement-at-gigabytes-per-second/
74
Upvotes
View all comments
Show parent comment
5
u/Ameisen vemips, avr, rendering, systems Oct 01 '26
My best SIMD work has just been 8/16-bit image conversion, SRGB/linear conversion, and some improvements to xxhash3 in .NET. Those are incredibly straightforward, especially compared to things like JSON parsing or UTF conversion...
I've never actually tried doing that kind of logic in SIMD - I imagine that it's similar to writing such logic in, say, late 2000s/early 2010s pixel shaders (like old-school GPGPU)?