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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

GoLevelDB: Remove unneeded comparison #232

Closed
wants to merge 1 commit into from
Closed

GoLevelDB: Remove unneeded comparison #232

wants to merge 1 commit into from

Conversation

johnsonjh
Copy link

@johnsonjh johnsonjh commented Nov 26, 2020

  • Not a particularly hot codepath, but, microbenchmarking with go bench actually confirms current Go optimizer somehow produces 25% shorter assembly output for cases of !value vs. if value == false.

(Edit: Thanks VTune 馃 )

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

1 participant