AjtevhihBudhirv
AjtevhihBudhirv on Hacker News
Re:Show HN: High-speed UTF-8 validation in Rust
on Wednesday April 21, 2021 @10:38AM (#26890229)
There're still faster approaches than naïve and probably common "copy valid byte sequences one by one into a resizable result buffer". For instance, scan through the input bytes all at once, keeping track of position and length of valid sequences, then memcopy each valid sequence into a preallocated buffer.
Edit: Although, it looks like Rust's std already does this, except for preallocating an exactly correct size result buffer: https://doc.rust-lang.org/src/alloc/string.rs.html#538
Re:“They introduce kernel bugs on purpose”
on Wednesday April 21, 2021 @09:12AM (#26889194)
It didn't. Rather, it didn't until after it had been conduct.
https://www-users.cs.umn.edu/~kjlu/papers/clarifications-hc....