perf(id): optimize snowflake to beat Myrra (364→<280 ns/op) #39
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#39
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: 283 ns/op. eskit: 364 ns/op. 23% slower.
Investigate: cached timestamp, batched sequence, avoid time.Now() syscall per call.
Target: <280 ns/op. Benchmark before/after.
Closing. 81ns difference is irrelevant when DB round-trip is 1ms+. Vanity optimization.