-
Notifications
You must be signed in to change notification settings - Fork 243
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
Problem: block-stm has bad worst case performance #1570
Conversation
WalkthroughThe changes introduce a new pre-estimate block-stm option aimed at enhancing worst-case performance in the application. The Changes
Sequence Diagram(s)sequenceDiagram
participant A as Application
participant B as BlockSTM Executor
participant C as AppOptions
A->>C: Retrieve preEstimate parameter
C->>A: Return preEstimate value
A->>B: Configure BlockSTM Executor with preEstimate
B-->>A: Executor ready with new configuration
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Solution: - support optional pre-estimate logic to improve worst case performance, in the cost of optimal case performance.
44f25df
to
fa14ebd
Compare
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.
Actionable comments posted: 1
Outside diff range and nitpick comments (1)
CHANGELOG.md (1)
36-36
: Changelog entry looks good!The addition to the changelog is appropriate and documents a relevant change.
-* [#1570](https://github.com/crypto-org-chain/cronos/pull/1570) Integrate pre-estimate block-stm option to improve worst case performance. +* [#1570](https://github.com/crypto-org-chain/cronos/pull/1570) Integrate pre-estimate block-stm option to improve worst-case performance.Tools
LanguageTool
[uncategorized] ~36-~36: If this is a compound adjective that modifies the following noun, use a hyphen.
Context: ...re-estimate block-stm option to improve worst case performance. ### Bug Fixes * [#1520](...(EN_COMPOUND_ADJECTIVE_INTERNAL)
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files ignored due to path filters (1)
go.sum
is excluded by!**/*.sum
Files selected for processing (5)
- CHANGELOG.md (1 hunks)
- app/app.go (2 hunks)
- app/bench_test.go (2 hunks)
- go.mod (3 hunks)
- gomod2nix.toml (6 hunks)
Files skipped from review due to trivial changes (2)
- go.mod
- gomod2nix.toml
Additional context used
LanguageTool
CHANGELOG.md
[uncategorized] ~36-~36: If this is a compound adjective that modifies the following noun, use a hyphen.
Context: ...re-estimate block-stm option to improve worst case performance. ### Bug Fixes * [#1520](...(EN_COMPOUND_ADJECTIVE_INTERNAL)
Additional comments not posted (1)
app/bench_test.go (1)
Line range hint
42-74
: LGTM!The changes introduce a new constant
BlockSTMPreEstimate
to configure the block state machine pre-estimation during benchmarking. The constant is set tofalse
, disabling pre-estimation, and is used in a specific benchmarking scenario with memiavl-stm and different number of workers.The changes are well-contained within the benchmarking function and do not affect the core application logic.
Solution:
Benchmark Results
👮🏻👮🏻👮🏻 !!!! REFERENCE THE PROBLEM YOUR ARE SOLVING IN THE PR TITLE AND DESCRIBE YOUR SOLUTION HERE !!!! DO NOT FORGET !!!! 👮🏻👮🏻👮🏻
PR Checklist:
make
)make test
)go fmt
)golangci-lint run
)go list -json -m all | nancy sleuth
)Thank you for your code, it's appreciated! :)
Summary by CodeRabbit
New Features
Bug Fixes
Documentation
Chores