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

Cleanup address overlap checks #206

Merged
merged 7 commits into from Aug 10, 2020

Conversation

tswilliams
Copy link
Collaborator

Following feedback that it takes a long time to load some uHAL address tables, I've cleaned up the node overlap check code. Specifically, this branch:

  • moves the address overlap checks to (internal) utility functions
  • updates the implementation of the overlap checks to make them both easier to read/maintain (fewer lines of code) and more efficient
  • adds unit tests for the address overlap checks

Regarding time taken to load address tables: Before this pull request, on my laptop it took ~ 20 seconds to parse some ATLAS address tables from Murrough Landon (due to a quadratic dependence on the number of nodes). Now it only takes about 0.5 seconds, with the amount of time spent in overlap checks reducing from ~ 20 seconds to ~ 15 milliseconds.

@tswilliams tswilliams force-pushed the task/cleanup-address-overlap-checks branch from f79e2e1 to 1292599 Compare August 9, 2020 23:38
@tswilliams tswilliams merged commit 5044a36 into master Aug 10, 2020
@tswilliams tswilliams deleted the task/cleanup-address-overlap-checks branch August 10, 2020 09:50
@tswilliams tswilliams added this to the v2.7.6 release milestone Aug 10, 2020
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.

None yet

1 participant