-
Notifications
You must be signed in to change notification settings - Fork 4
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
Pefromance enhancements #33
Conversation
Big 👍 to use of |
Shouldn't that functionality be in the |
🚀 |
Possibly yes, I was working here to get things working but file could easily be moved |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actions not passing for some reason. Happy with the ideas and code here but needs to be tidied up and not break the checks before merging.
This belongs upstream: itsleeds/od#18 |
@Robinlovelace some work in progress
The goal is faster performance on large datasets.
Changes are:
nngeo
to get the nearest neighbours rather than creating the full matrix. Also adds support for projected coordinates and the ability to look for the nearest X regardless of distance. Could be useful when mixing rural and urban areas, where say 5000m is a long way to go for a shop in an urban area but a short distance in a rural area. Should be much faster for very large numbers of origins and destinations and less likely to run out of memory.si_calculate
andsi_predict
that usedata.table
and avoid copying data when possible. Slight breaking change asconstraint_production
now needs to be a quoted character. I couldn't figure out thedplyr
syntax, so welcome suggestions on a fix.Example