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

Move key comparison code to storage/key.h for better inlining. #1170

Closed
wants to merge 1 commit into from

Conversation

esmet
Copy link
Contributor

@esmet esmet commented May 29, 2014

Also add a few MONGO_unlikely clauses to unlikely branches in the comparison function.

MONGO_unlikely clauses to unlikely branches in the comparison function.
@esmet esmet added this to the Future Features milestone May 29, 2014
@zkasheff
Copy link
Contributor

Good stuff. Was this motivated by an experiment of any kind? Have you seen
an impact anywhere?

On Thu, May 29, 2014 at 10:46 AM, John Esmet notifications@github.comwrote:

Also add a few MONGO_unlikely clauses to unlikely branches in the

comparison function.

You can merge this Pull Request by running

git pull https://github.com/Tokutek/mongo inline_cmp

Or view, comment on, or merge it at:

#1170
Commit Summary

  • Move key comparison code to storage/key.h for better inlining. Add a
    few

File Changes

Patch Links:


Reply to this email directly or view it on GitHubhttps://github.com//pull/1170
.

@esmet
Copy link
Contributor Author

esmet commented May 29, 2014

I see ~5% on non-covering secondary range queries.

Pretty good for a 'free' changeset!

@leifwalsh
Copy link
Contributor

going to have tim run benchmarks with 1.5 + this change, considering this for 1.5

@leifwalsh leifwalsh modified the milestones: 1.5.1, Future Features Jun 19, 2014
@esmet esmet closed this Sep 10, 2014
@esmet esmet deleted the inline_cmp branch September 10, 2014 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants