-
Notifications
You must be signed in to change notification settings - Fork 242
Performance enhancements from flame graph analysis #599
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
Performance enhancements from flame graph analysis #599
Conversation
2fa1958 to
6b5d0bd
Compare
Signed-off-by: Peter Broadhurst <peter.broadhurst@kaleido.io>
Signed-off-by: Peter Broadhurst <peter.broadhurst@kaleido.io>
Signed-off-by: Peter Broadhurst <peter.broadhurst@kaleido.io>
Signed-off-by: Peter Broadhurst <peter.broadhurst@kaleido.io>
Signed-off-by: Peter Broadhurst <peter.broadhurst@kaleido.io>
Signed-off-by: Peter Broadhurst <peter.broadhurst@kaleido.io>
Signed-off-by: Peter Broadhurst <peter.broadhurst@kaleido.io>
Signed-off-by: Peter Broadhurst <peter.broadhurst@kaleido.io>
Signed-off-by: Peter Broadhurst <peter.broadhurst@kaleido.io>
Signed-off-by: Peter Broadhurst <peter.broadhurst@kaleido.io>
Signed-off-by: Peter Broadhurst <peter.broadhurst@kaleido.io>
Signed-off-by: Peter Broadhurst <peter.broadhurst@kaleido.io>
Signed-off-by: Peter Broadhurst <peter.broadhurst@kaleido.io>
Signed-off-by: Peter Broadhurst <peter.broadhurst@kaleido.io>
Signed-off-by: Peter Broadhurst <peter.broadhurst@kaleido.io>
17b9f90 to
677ac48
Compare
Signed-off-by: Peter Broadhurst <peter.broadhurst@kaleido.io>
677ac48 to
80ed638
Compare
Codecov Report
@@ Coverage Diff @@
## main #599 +/- ##
===========================================
- Coverage 100.00% 99.98% -0.02%
===========================================
Files 306 306
Lines 18018 18185 +167
===========================================
+ Hits 18018 18182 +164
- Misses 0 2 +2
- Partials 0 1 +1
Continue to review full report at Codecov.
|
| bp.conf.BatchMaxSize = 1 | ||
| bp.conf.txType = fftypes.TransactionTypeUnpinned | ||
|
|
||
| mockRunAsGroupPassthrough(mdi) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I missed whenever this helper came into existence, but we probably need it in every package 😃
pkg/database/plugin.go
Outdated
| } | ||
|
|
||
| type iPinCollection interface { | ||
| // InsertPins - Inserts a list of pins - fails if they already exist, so caller can fall back to UpsertPin individually |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fails if they already exist, so caller can fall back to UpsertPin individually
This is a useful bit of information - is it relevant on some of the other multi-insert calls added recently?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It wasn't before, but it is now after this PR 👍
awrichar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks really good - couldn't see any major problems here. Great to see things getting to this level of optimization.
Signed-off-by: Peter Broadhurst <peter.broadhurst@kaleido.io>

Set of incremental test+fix changes, based on analysis of flame graphs against runs.
prefixkey - so set one to the node namepinsarray on a message (reducing the max topics for each message to 10), to aid debugging in the case of stuck contextsInstead we now just query the ID+Sequence, and then read the rest from the cache