Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use sync.OnceValue for lazy regexp initialization
Using sync.OnceValue instead of the local implementation brings some benefits in allocations, panic handling and mutex use / concurrent access after initialization. Signed-off-by: Kimmo Lehto <[email protected]>
- Loading branch information