Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat/store-ranges-smaller-tree-and-deduplication #3

Merged
merged 4 commits into from
Oct 1, 2024

Conversation

nohehf
Copy link
Member

@nohehf nohehf commented Oct 1, 2024

  • The IP tree is now binary
  • Reduced IP tree size by ~3x
  • Tree now properly deduplicates networks, by only keeping the largest ones (duplicates, or subnetworks will be dropped).
  • Ranges are now stored in ./ranges, one .txt file per provider. They're extracted after building the tree, meaning that they benefit from the deduplication.
  • go stringer was replaced by go-enum for enum generation, to allow for more customization, and checking at build time that the enum / sources are correctly mapped

@nohehf nohehf merged commit 5dd4b84 into main Oct 1, 2024
3 checks passed
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