WeSearch

Parsing IPv6 Addresses Crazily Fast with AVX-512

https://lemire.me/blog/author/lemire/· ·4 min read · 0 reactions · 0 comments · 34 views
#ipv6#technology#programming
Parsing IPv6 Addresses Crazily Fast with AVX-512
TL;DR · WeSearch summary

A new method for parsing IPv6 addresses using AVX-512 instructions has been developed, significantly improving speed. This approach processes over 70 million addresses per second, making it approximately 12 times faster than the standard inet_pton function. The technique leverages data parallelism to enhance performance while reducing the number of instructions executed.

Key facts
How this story was covered

2 outlets in our directory ran this story, first to last over 18 hours. All of the coverage we found sits in one bucket: centre. That one-sidedness is itself worth noticing.

Centre · 1
About this source

Hacker News (Newest) files mainly under programming. We currently carry 5,270 of its stories.

Original article
Daniel Lemire's blog · https://lemire.me/blog/author/lemire/
Read full at Daniel Lemire's blog →
Opening excerpt (first ~120 words) tap to expand

Parsing IPv6 Addresses Crazily Fast with AVX-512 Every machine connected to the Internet has an address called an IP address. Originally, these addresses were 32-bit integers (IPv4), giving a theoretical maximum of about four billion distinct addresses. We are all familiar with these addresses (e.g., 192.168.0.0). There was a big fuss about how we would run out of addresses. It never happened because we don’t actually need every device to have its own unique address. Your home router needs an address, but every device in your home does not need a worldwide unique address. Nevertheless, the range was extended to cover 128 bits (IPv6). An IPv6 address is conventionally written as eight groups of four hexadecimal digits separated by colons.

Excerpt limited to ~120 words for fair-use compliance. The full article is at Daniel Lemire's blog.

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments