iAccount based inBelgium
About this account
- Account based in
- Belgium
- Connected via
- Belgium Android App
Account-level information from X, not a live location or the device used for a specific post.
Network protocols (HTTP/2, HTTP/3, QUIC) and Web performance @Akamai. PhD. Dad. Longsword fencer. He/Him. @programmingart.bsky.social
- Tweets3.6K
- Following1.3K
- Followers5.9K
- Likes44.9K
ALT (screenshot of blog) Counting Words at SIMD Speed Aug 2025 I've written some progressively faster word counting programs. First, we'll start with Python, and then we'll drop down to C, and finally, we'll use single instruction, multiple data (SIMD) programming to go as fast as possible. The task is to count the words in an ASCII text file. For example, Hello there! contains 2 words, and my 1 GiB benchmark text file contains 65 million words. At a high level: read bytes, scan while tracking minimal state, write the count to stdout. These are the results from my Apple M1 Pro that I'll dig into: Python (byte loop): 89.6 s Python + re: 13.7 s C (scalar loop): 1.205 s C + ARM NEON SIMD: 249 ms C + ARM NEON SIMD + threads: 181 ms You can also jump straight to the source files.