hatchet
hatchet copied to clipboard
Optimize UUID-related `sqlchelpers`
Description
Optimizes UUID related sqlchelpers
$ go test -bench=. -benchmem
goos: darwin
goarch: arm64
pkg: github.com/hatchet-dev/hatchet/pkg/repository/postgres/sqlchelpers
cpu: Apple M4 Max
BenchmarkUUIDToStr/Optimized-16 62717914 18.81 ns/op 48 B/op 1 allocs/op
BenchmarkUUIDToStr/Original-16 8207217 142.3 ns/op 192 B/op 7 allocs/op
BenchmarkUniqueSet/Optimized-16 28984 41319 ns/op 101528 B/op 21 allocs/op
BenchmarkUniqueSet/Original-16 15351 77998 ns/op 208024 B/op 1521 allocs/op
PASS
ok github.com/hatchet-dev/hatchet/pkg/repository/postgres/sqlchelpers 5.520s
Type of change
- [x] Chore (changes which are not directly related to any business logic)
The latest updates on your projects. Learn more about Vercel for GitHub.
| Project | Deployment | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| hatchet-docs | Preview | Comment | Nov 17, 2025 6:04pm | |
| hatchet-v0-docs | Preview | Comment | Nov 17, 2025 6:04pm |