Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
burntsushi
5y ago
0 comments
Save
Share
It does use SIMD (when enabled). But also, the encoding_rs crate is doing more. It isn't just checking for validity. It's also doing transcoding and error detection.
0 comments
2 comments · 1 top-level
top
newest
oldest
kryps
5y ago
· 1 in thread
As far as I can see it does not use SIMD for UTF8 validation, only likely/unlikely instrinsics, see
https://github.com/hsivonen/encoding_rs/blob/e98a2096ab09c92...
jfk13
5y ago
That's not the only use of SIMD in the crate (e.g. see
https://github.com/hsivonen/encoding_rs/blob/e98a2096ab09c92...
), but I haven't looked into exactly where/how it's used further.
j
/
k
navigate · click thread line to collapse