perf(sheet): reduce repeated inventory description work #129
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Athemis/ds4!129
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "perf/sheet-description-display"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Test Plan
Closes #127
Closes #128
Benchmark Results
A local benchmark was run to verify the performance impact of this PR. Since
_buildItemListEntryis introduced by this PR, a direct branch-to-branch comparison was not possible.Cold vs Warm (Cache Effect)
Invalidation Costs
Interpretation
Conclusion
The optimization provides significant performance gains for the common case of repeated inventory viewing. Cache invalidation is correctly implemented - item changes only affect that item, actor changes invalidate the full cache.
PR #130's lazy consume-flow behavior is preserved - we only cache in sheet rendering, not in the consume dialog path.
Recommended for merge.
a9171028df175815bda3