Closed kylecarbs closed 5 months ago
Using GODEBUG=inittrace=1 I found a relatively constant 10ms init caused by this function.
GODEBUG=inittrace=1
Replaces #1246.
@go-playground/validator-maintainers
@deankarn sorry for the PR spam, other one automatically closed! 🤦
I changed this to use sync.Once, which I agree is cleaner.
sync.Once
coverage: 74.272% (+0.02%) from 74.257% when pulling 9ded6c51ac8e1ac338e0342f12f8d44df0185bbc on kylecarbs:master into c7e85182ab05a4b302bca82a86f1f09530bd2bc1 on go-playground:master.
Using
GODEBUG=inittrace=1
I found a relatively constant 10ms init caused by this function.Replaces #1246.
@go-playground/validator-maintainers