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

Use yl2chen/cidranger for prefix matching #4

Open
jpillora opened this issue Sep 1, 2017 · 2 comments
Open

Use yl2chen/cidranger for prefix matching #4

jpillora opened this issue Sep 1, 2017 · 2 comments

Comments

@jpillora
Copy link
Owner

jpillora commented Sep 1, 2017

Swap the slice-based (O(n)) prefix matching out for https://github.com/yl2chen/cidranger (Thanks @yl2chen!)

Edit: Also investigate https://github.com/Kentik/patricia

@yl2chen
Copy link

yl2chen commented Sep 1, 2017

enjoy!

@anacrolix
Copy link

Is https://github.com/anacrolix/torrent/blob/master/iplist/iplist.go of any interest? Probably not as efficient but I use it heavily.

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

No branches or pull requests

3 participants