Skip to content

use spatial index to speed up#34

Open
fnorf wants to merge 1 commit into
funkeinteraktiv:masterfrom
fnorf:patch-1
Open

use spatial index to speed up#34
fnorf wants to merge 1 commit into
funkeinteraktiv:masterfrom
fnorf:patch-1

Conversation

@fnorf

@fnorf fnorf commented Nov 25, 2016

Copy link
Copy Markdown
Contributor

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! :))))))))))))

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! :))))))))))))
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.

1 participant