Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: compile regex in validation method on the first use
See #7578 With this change and #7590, init allocation: ``` init github.com/siderolabs/talos/pkg/machinery/config/types/v1alpha1 @2.1 ms, 0.006 ms clock, 1408 bytes, 26 allocs ``` Previously, it was: ``` init github.com/siderolabs/talos/pkg/machinery/config/types/v1alpha1 @3.8 ms, 0.30 ms clock, 184248 bytes, 1176 allocs ``` Signed-off-by: Andrey Smirnov <[email protected]>
- Loading branch information