clist: speedup Next by removing defers#2511
Merged
Conversation
This change doubles the speed of the mempool's reaping. Before: BenchmarkReap-8 5000 365390 ns/op 122887 B/op After: BenchmarkReap-8 10000 158274 ns/op 122882 B/op
Contributor
Author
|
The time breakdown of mempool reaping is now: 62.5% of the time is spent on mutex unlocking / locking in clist.Next |
Codecov Report
@@ Coverage Diff @@
## develop #2511 +/- ##
===========================================
+ Coverage 61.26% 61.53% +0.27%
===========================================
Files 202 197 -5
Lines 16710 16450 -260
===========================================
- Hits 10237 10123 -114
+ Misses 5607 5497 -110
+ Partials 866 830 -36
|
ebuchman
approved these changes
Sep 30, 2018
Contributor
yikes! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change doubles the speed of the mempool's reaping.
Before:
After: