Parsing IPv6 Addresses Crazily Fast with AVX-512
Daniel Lemire가 AVX-512 SIMD 명령어를 활용해 IPv6 주소 파싱을 기존 inet_pton 함수보다 약 12배 빠르게 구현했다. 이 방법은 512비트 레지스터에 문자열을 로드해 콜론 위치를 빠르게 찾고, 브랜치 없는 연산으로 7천만 건 이상의 주소를 초당 처리한다. 인텔 Xeon Gold 6548N CPU에서 벤치마크했으며, 소스 코드는 공개되어 있어 네트워크 및 시스템 소프트웨어 개발에 즉시 활용 가능하다.
https://lemire.me/blog/2026/05/23/parsing-ipv6-addresses-crazily-fast-with-avx-512/

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 … Continue reading Parsing IPv6 Addresses Crazily Fast with AVX-512
Qiita - 人気の記事