use spatial index to speed up#34
Open
fnorf wants to merge 1 commit into
Open
Conversation
I worked with rtree in Python recently so the logic was easy to transfer. Don't judge my code, I *hate* JavaScript and have no idea about anything. Don't merge it like this, it looks ugly as hell. :] Adds rbush as dependency! Results seem identical up to 9-10 places so perfectly fine. https://gist.github.com/fnorf/38e789f37619f47dc9826d848546e1be Before: real 3m37.833s user 3m39.787s sys 0m0.310s After: real 0m34.675s user 0m35.260s sys 0m0.160s Weeeeeeeeeeeeeeeeee! :))))))))))))
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I worked with rtree in Python recently so the logic was easy to transfer. Don't judge my code, I hate JavaScript and have no idea about anything. Please don't merge it like this, it looks ugly as hell. :]
Adds rbush as dependency!
Results seem identical up to 9-10 places so perfectly fine. https://gist.github.com/fnorf/38e789f37619f47dc9826d848546e1be
Before:
real 3m37.833s
user 3m39.787s
sys 0m0.310s
After:
real 0m34.675s
user 0m35.260s
sys 0m0.160s
Weeeeeeeeeeeeeeeeee! :))))))))))))