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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor ApplyBuckets Work #4290

Open
SirTyson opened this issue Apr 18, 2024 · 0 comments
Open

Refactor ApplyBuckets Work #4290

SirTyson opened this issue Apr 18, 2024 · 0 comments
Assignees
Labels
cleanup refactoring or other internal improvements

Comments

@SirTyson
Copy link
Contributor

Currently, ApplyBuckets work reasons at the BucketLevel instead of at the per-bucket level. Especially after the BucketListDB apply optimization, this means that there's some tricky logic required to keep our current place in the BucketList and make sure our iteration order is correct. We should refactor this to apply per-bucket instead of per-level to simplify the logic.

@SirTyson SirTyson added the cleanup refactoring or other internal improvements label Apr 18, 2024
@stellar stellar deleted a comment Jun 4, 2024
SirTyson added a commit to ThomasBrady/stellar-core that referenced this issue Jul 1, 2024
# Description
Refactors `ApplyBucketsWork` to apply buckets per-bucket rather than
per-level. Deleted a lot of book keeping code referring to curr/snap
apply ordering.

Issue:  stellar#4290
<!---

Describe what this pull request does, which issue it's resolving
(usually applicable for code changes).

--->

# Checklist
- [x] Reviewed the
[contributing](https://github.com/stellar/stellar-core/blob/master/CONTRIBUTING.md#submitting-changes)
document
- [ ] Rebased on top of master (no merge commits)
- [x] Ran `clang-format` v8.0.0 (via `make format` or the Visual Studio
extension)
- [x] Compiles
- [x] Ran all tests
- [ ] If change impacts performance, include supporting evidence per the
[performance
document](https://github.com/stellar/stellar-core/blob/master/performance-eval/performance-eval.md)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup refactoring or other internal improvements
Projects
None yet
Development

No branches or pull requests

3 participants
@ThomasBrady @SirTyson and others