Daniel Lemire personal blog

Parsing integers quickly with AVX-512

If I give a programmer a string such as "9223372036854775808" and I ask them to convert it to an integer, they might do the following in C++: std::string s = .... uint64_t val; auto [ptr, ec] = std::from_chars(s.data(), s.data() + s.size(), val); if (ec != std::errc()) {} // I have an error ! // val … Continue reading…
Points
163
HN comments
39
Submissions
1
Cited by
0 commenters

Software EngineeringSystems & Performance2023

On Hacker News

SubmittedTitle on HNPointsComments
Sep 22, 2023Parsing integers quickly with AVX-512 by usdogu16339

More from Daniel Lemire

All 87 posts →

Related posts from the same era