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

tiny optimization #94

Merged
merged 1 commit into from
Jul 8, 2019
Merged

tiny optimization #94

merged 1 commit into from
Jul 8, 2019

Conversation

ngaut
Copy link
Member

@ngaut ngaut commented Jul 8, 2019

No description provided.

db.go Outdated
if val.Valid() {
pair.val = val
pair.found = true
foundCount++
}
}
}
y.NumMemtableGets.Add(int64(foundCount))
Copy link
Member

Choose a reason for hiding this comment

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

It's a little different, not found is counted before this change.

@ngaut ngaut force-pushed the ngaut/tiny-optimization branch from c8d4f63 to 4b7fe8a Compare July 8, 2019 08:33
@ngaut
Copy link
Member Author

ngaut commented Jul 8, 2019

PTAL

@coocood
Copy link
Member

coocood commented Jul 8, 2019

LGTM

@coocood coocood merged commit aeb51d8 into master Jul 8, 2019
@coocood coocood deleted the ngaut/tiny-optimization branch July 8, 2019 08:35
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.

2 participants