Closed yihuang closed 2 months ago
The pull request introduces changes to optimize the default parallelism settings of the block-stm executor. It updates the changelog to reflect these improvements, adds a new function maxParallelism()
in app.go
to determine the number of workers, and modifies the worker allocation strategy to use this new function. Additionally, the dependency version for github.com/crypto-org-chain/go-block-stm
is updated in both go.mod
and gomod2nix.toml
, indicating an upgrade to the module.
File | Change Summary |
---|---|
CHANGELOG.md | Added a section for "UNRELEASED" detailing improvements to block-stm's default parallelism and the introduction of maxParallelism() function. |
app/app.go | Modified worker allocation logic in New function to use maxParallelism() for determining the number of workers, enhancing code readability. |
go.mod | Updated version of github.com/crypto-org-chain/go-block-stm from v0.0.0-20240912024944-1cd89976aa5e to v0.0.0-20240919080136-6c49aef68716 . |
gomod2nix.toml | Updated version and hash for github.com/crypto-org-chain/go-block-stm to reflect the new version and corresponding hash change. |
.github/workflows/lint.yml | Changed Go version from ^1.22.0 to 1.22.7 for consistency in the build process. |
testground/benchmark/pyproject.toml | Removed testground-testcase script from the [tool.poetry.scripts] section, indicating a shift in focus. |
BlockSTMPreEstimate
constant, which is directly related to the changes in the main PR that involve the management of parallelism in block-stm execution.š° In the realm of code so bright,
A rabbit hops with pure delight.
Parallelism now optimized,
Workers managed, well-advised.
With each change, we leap and bound,
In harmony, our code is found! š
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 36.12%. Comparing base (
b6c83b7
) to head (8a35414
). Report is 1 commits behind head on main.
Solution:
š®š»š®š»š®š» !!!! 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