Noticed that lemire/simdjson has a vectorised utf-8 validation algorithm, but the stdlib apparently does not.
https://doc.rust-lang.org/src/core/str/mod.rs.html#1450 …
Could this be a way to improve string perf for a lot of cases?
cc/ @heinz_gies
-
-
Yup, it’d sure be nice to have a simd variant in stdlib! I think the performance will vary wildly, aux, depending on architecture and input can be tricky (i.e. for short strings normal code is probably faster - gut feeling). For HTTP https://github.com/seanmonstar/httparse/blob/master/src/simd/avx2.rs … does that do it?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
.