-
Notifications
You must be signed in to change notification settings - Fork 141
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
Node insertion optimization #243
Node insertion optimization #243
Conversation
5ef0f10
to
28dc50d
Compare
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.
lgtm
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.
Can you share the benchmarks?
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.
Nice! Can you share the benchmarks?
28dc50d
to
6086a3d
Compare
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.
LGTM
Could you rebase? Thanks! |
As I mention here #242, it wasn't the best solution to this #241 issue. This is much better. I needed to optimize the insert method first. The main idea of optimization is that previously the insertion of each node started at the root of the tree. Now, setting a new node is based on the previous one. This allowed us to simplify the code a lot.