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

slow and large memory taken for over 1M records #39

Open
whille opened this issue Jun 27, 2018 · 1 comment
Open

slow and large memory taken for over 1M records #39

whille opened this issue Jun 27, 2018 · 1 comment

Comments

@whille
Copy link

whille commented Jun 27, 2018

For over 1M records, like: "1.1.1.0/24 APNIC|APNIC||" , it takes minutes to initialize and > 1G memory. Any speed factors I neglected?
Here's my test codes:
https://github.com/whille/mylab/blob/master/qqzeng-ip-python/RadixSearch.py

@mjschultz
Copy link
Owner

Do you know if you are using the python-only implementation or the c-based extension? The python-only implementation will be slower and much more memory intensive than the C version.

An alternative implementation is the network-finder utility that might work better for you is a binary search which should consume less memory but might be a bit slower (depending on how much less memory, it might be faster if page swapping is in play). It is designed to be API-compatible with this library, so it should be a simple swap in.

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

2 participants