hatchet icon indicating copy to clipboard operation
hatchet copied to clipboard

Optimize UUID-related `sqlchelpers`

Open mnafees opened this issue 1 month ago • 1 comments

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)

mnafees avatar Nov 17 '25 18:11 mnafees

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
hatchet-docs Ready Ready Preview Comment Nov 17, 2025 6:04pm
hatchet-v0-docs Ready Ready Preview Comment Nov 17, 2025 6:04pm

vercel[bot] avatar Nov 17 '25 18:11 vercel[bot]