perf: optimize redundant log query#5225
Open
bootcodes wants to merge 5 commits intohiero-ledger:mainfrom
Open
Conversation
Signed-off-by: Thomas Boot <thomas.boot@swirldslabs.com>
Not up to standards ⛔🔴 Issues
|
| Category | Results |
|---|---|
| CodeStyle | 2 minor |
🟢 Metrics 8 complexity · 0 duplication
Metric Results Complexity 8 Duplication 0
TIP This summary will be updated as you push new changes. Give us feedback
Signed-off-by: Thomas Boot <thomas.boot@swirldslabs.com>
jasuwienas
reviewed
Apr 9, 2026
quiet-node
reviewed
Apr 9, 2026
Contributor
quiet-node
left a comment
There was a problem hiding this comment.
Clean work left some feedback
quiet-node
reviewed
Apr 9, 2026
Signed-off-by: Thomas Boot <thomas.boot@swirldslabs.com>
Signed-off-by: Thomas Boot <thomas.boot@swirldslabs.com>
Codecov Report❌ Patch coverage is
❌ Your project check has failed because the head coverage (74.42%) is below the target coverage (80.00%). You can increase the head coverage or adjust the target coverage.
@@ Coverage Diff @@
## main #5225 +/- ##
===========================================
- Coverage 95.94% 74.42% -21.52%
===========================================
Files 146 146
Lines 25140 25225 +85
Branches 2039 965 -1074
===========================================
- Hits 24120 18774 -5346
- Misses 998 6416 +5418
- Partials 22 35 +13
... and 88 files with indirect coverage changes 🚀 New features to boost your workflow:
|
Signed-off-by: Thomas Boot <thomas.boot@swirldslabs.com>
quiet-node
approved these changes
Apr 10, 2026
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.
Description
This PR introduces a fix to store prefetched logs in an object and pass it down into child functions to avoid any redundant API calls.
Related issue(s)
Fixes #4905
Testing Guide
Changes from original design (optional)
N/A
Additional work needed (optional)
N/A
Checklist