tx metacache performance improvements#820
Conversation
|
🤖 Claude Code Review Status: Complete Summary: This PR implements focused performance optimizations for tx metacache: buffer pooling, small-batch optimization, metrics aggregation, and a critical slice bounds fix. The changes are well-structured and maintain correctness. Positive findings:
No critical issues found. The existing inline comment threads on lines 74 and 399 have already been addressed by previous reviews. |
Benchmark Comparison ReportBaseline: Current: Summary
All benchmark results (sec/op)
Threshold: >10% with p < 0.05 | Generated: 2026-05-13 12:57 UTC |
feda242 to
8a0594b
Compare
532bc21 to
2028ab0
Compare
|
| } | ||
|
|
||
| found, err = p.cache.GetMetaCached(p.ctx, txHash, &txMeta) | ||
| cachedBytes, found, err = p.cache.GetMetaCachedWithBuffer(p.ctx, txHash, &txMeta, cachedBytes) |
There was a problem hiding this comment.
Why pass in and return? If the variable being passed in, or passed in by reference, you stay on the stack, instead of heap



No description provided.