Skip to content

chore(data): refresh embedded IP location and ASN metadata - #520

Merged
PascaleBeier merged 3 commits into
mainfrom
chore/refresh-december-ip-metadata
Dec 2, 2026
Merged

PascaleBeier merged 3 commits into
mainfrom
chore/refresh-december-ip-metadata

Conversation

@PascaleBeier

@PascaleBeier PascaleBeier commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

Refresh the embedded country, city, and autonomous system (ASN) datasets for December. The generator now writes range frames up to the 2 MiB limit the production reader already supports. The file format and decoder are unchanged.

The three files total 17,938,470 bytes, leaving 61,530 bytes in the 18,000,000-byte budget. The decoded-cache test measured 28,203,599 bytes against a 32 MiB limit.

  • Verified every decoded IPv4 and IPv6 range, its associated value, and both metadata tables against the original December generation in 16982062. The same data takes 55 frames, down from 107.
  • Ran the repository IP metadata refresh twice and verified the SHA-256 values matched for all three files.
  • Passed go test -v ./ipmeta ./ipmeta/ipmetagen ./ipmeta/refresh ./cmd/ipmeta-generate, including the production decoder, cache eviction, and embedded size budget tests.

In five alternating runs of the repository's IPv4 benchmark on the same machine and December data, the median full lookup from an empty cache rose from 17.5 ms to 24.8 ms. A cold country-only lookup rose from 2.87 ms to 4.64 ms. Warm lookups measured about 197 ns for full metadata and 40 ns for country in both versions.

@PascaleBeier
PascaleBeier marked this pull request as ready for review December 2, 2026 14:20
@PascaleBeier
PascaleBeier merged commit 3613120 into main Dec 2, 2026
19 checks passed
@PascaleBeier
PascaleBeier deleted the chore/refresh-december-ip-metadata branch December 2, 2026 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant