perf: sqlitestore — deduplicate event scanning functions #227
Labels
No labels
bug
documentation
enhancement
investigation
nice-to-have
performance
production-ready
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ash/eskit#227
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Problem
sqlitestore/store.gohas 5 nearly identical event scanning functions (lines ~530-970) that each:time.Parsejson.UnmarshalThis is ~400 lines of copy-pasted code.
Solution
Extract a single generic
scanEvent[E any]()orscanRawEvent()helper. All 5 call sites use it.Benefits:
Pillar: Performance, Code Readability