Skip to content

Commit 9ded6c5

Browse files
committed
Lazily initialize regexes to speed up `init()
Using `GODEBUG=inittrace=1` I found a relatively constant 10ms init caused by this function. Replaces #1246.
1 parent c7e8518 commit 9ded6c5

File tree

4 files changed

+158
-136
lines changed

4 files changed

+158
-136
lines changed

0 commit comments

Comments
 (0)