Skip to content

Commit

Permalink
Lazily initialize regexes to speed up `init()
Browse files Browse the repository at this point in the history
Using `GODEBUG=inittrace=1` I found a relatively constant 10ms init caused by this function.

Replaces go-playground#1246.
  • Loading branch information
kylecarbs committed Jun 11, 2024
1 parent c7e8518 commit 9ded6c5
Show file tree
Hide file tree
Showing 4 changed files with 158 additions and 136 deletions.
Loading

0 comments on commit 9ded6c5

Please sign in to comment.