ASCII Validation from 2.5 to 114 GB/s with SIMD
12 comments · performance
- Comments12
12 comments · performance
Story details from Lobsters ↗ · linked article on modulovalue.com.
ASCII Validation from 2.5 to 114 GB/s with SIMD was first seen by Trendoday on Dec 5, 2026. Since then it has appeared in 78 checks on 2 different days. It reached #2 on Lobsters · Hottest on Dec 5, 2026 UTC. It is #15 right now, slipping from #13 to #15 over the last 6 checks.
Position on Lobsters · Hottest at every check (lower is better).
Best rank per day (UTC).
▲ as reported by Lobsters.
A few top-level comments from Lobsters, shortened. Read the full thread on Lobsters.
You shouldn't need _any_ vectorization to reach 120+ GB/s on one thread. ; The rsi/rdi registers point to the start/end of buffer. ; Assume for simplicity that rdi - rsi is divisible by 24. xor rax, rax xor rcx, rcx xor rdx, rdx ; The rax/rcx/rdx registers are three phased or-accumulators, which ; is the usual trick…
Interesting. I haven't tested throughput, but from a very quick skim, this autovectorizes quite well with both gcc and clang on x86 (edit: once the early return is removed): int scalar(char *b, int len) { int acc = 0; for (int i = 0; i < len; i++) acc |= b[i] & 0x80; return acc; } I was expecting to see some…
Autovectorization continues not to be a programming model: When I rewrote the ASCII acceleration earlier this year, I learned that small snippets autovectorize nicely when godbolting, but the autovectorization falls apart when they are inlined together.
Archived daily, weekly and monthly lists that include this entry.
Yes. As of Dec 6, 17:22 UTC it is #15, slipping from #13 to #15 over the last 6 checks.
#2 on Dec 5, 2026 UTC.
It was first seen on Dec 5, 2026 and has been on the list on 2 days (78 checks) since.