conv.

All stories
TechQuiet 86d · day 87

Lemire optimizes IP address parsing in C# using AVX-512 SIMD

A performance researcher demonstrates fast IPv4 parsing in C# leveraging recent processor instruction sets.

What to know

  • Lemire demonstrates IPv4 address parsing in C# using AVX-512 SIMD instructions, a technique now practical with .NET 10 support.
  • Masked loads allow efficient handling of variable-length strings without buffer overruns, solving the challenge of UTF-16 encoding overhead in C#.
  • The researcher advocates for .NET standard library adoption of such optimizations, having previously proposed similar contributions for Unicode validation and base64 decoding.

“A nice approach is to have masked loads where you, say, load the full register (say 16 bytes), but you indicate which bytes you want to be loaded from memory with a mask.”

Daniel Lemire · lemire.me blog

Daniel Lemire Performance researcher and author

The record 3 articles and posts · last 30 days

  1. > > Parsing IP addresses in C# at crazy speeds http:// dlvr.it/TV61rJ post · Mastodon · PauloMorgado@dotnet.social · 86d ago
  2. Parsing IP addresses in C# at crazy speeds post · Hacker News · ibobev · 86d ago · 2▲
  3. Parsing IP addresses in C# at crazy speeds https:// lemire.me/blog/2026/08/19/pars… post · Mastodon · lemire@mastodon.social · 87d ago