Repository navigation
chore(data): refresh embedded IP location and ASN metadata - #520
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
16982062. The same data takes 55 frames, down from 107.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.