Skip to content

Commit 2e1df48

Browse files
authored
Lazily initialize regexes to speed up init() (#1277)
Using `GODEBUG=inittrace=1` I found a relatively constant 10ms init caused by this function. Replaces #1246. @go-playground/validator-maintainers
1 parent c7e8518 commit 2e1df48

File tree

4 files changed

+158
-136
lines changed

4 files changed

+158
-136
lines changed

0 commit comments

Comments
 (0)