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

performance: switch to kiddo kd tree library for ~800x improvement on benchmark 😲 #8

Merged
merged 1 commit into from
Jul 12, 2022

Conversation

sdd
Copy link
Contributor

@sdd sdd commented Apr 27, 2022

I tried a little experiment and switched out the old kdtree library for kiddo, a performance-improved fork of the now 2-year-old kdtree. (fair disclosure: I'm the maintainer of kiddo).

This resulted in a huge improvement in performance on the benchmark. Tested on a Ryzen 5900X, I got the following result for the old master branch:

image

316.1 microseconds.

After my refactoring, I got the following result:

image

409.9 nanoseconds - i.e. 0.4 microseconds! Faster by a factor of 790 😎

@gx0r
Copy link
Owner

gx0r commented Jul 12, 2022

This is amazing! I heard about kiddo a few months ago and at the time I don't think I could get it to work! Wow! Thank you!!

@gx0r gx0r merged commit f9c9ca0 into gx0r:main Jul 12, 2022
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

2 participants