perf(store): add sync.Pool for type deserialization — beat Myrra unmarshal #40
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#40
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?
Myrra uses sync.Pool to reuse event type instances on unmarshal. eskit allocates every time.
Add pooled type instances to EventRegistry. Wire into all store Load paths.
Myrra unmarshal: 344 ns/op. eskit jsoniter: 461 ns/op. Close the gap.
Shipped. TypeCache 16 ns/op (beats Myrra 19ns), pooled deserialization zero-alloc on hot path. All tests pass.