Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

Conversation

@eminency
Copy link
Contributor

Some simple test based on unit test was done with 1M tuples and searching 1M times.
Two columns, which are long and double, are used as sort key.
Count above is a number of invoking compare().

Current

find : 44 sec
count : 42001207

Patch

find : 43 sec
count : 20141495

@jihoonson
Copy link
Contributor

Overall, this patch looks good to me. Would you check the test failures?

@eminency
Copy link
Contributor Author

@jihoonson
Thank you for the comment.
I'm working on it. I will keep you posted.

start = centerPos;
}

centerPos = (start + end) / 2;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line also looks to be changed to centerPos = (start + end) >>> 1;

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants