Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
eval: don't build trace message when tracing disabled (#7165)
Running `regal lint` on Regal's own policies, this accounts for nearly 2 million allocations 😵 **Before** ``` BenchmarkRegalLintingItself-10 1 3314104416 ns/op 6720813824 B/op 128361292 allocs/op ``` **After** ``` BenchmarkRegalLintingItself-10 1 3185755333 ns/op 6684952216 B/op 126912887 allocs/op ``` Signed-off-by: Anders Eknert <anders@styra.com>
- Loading branch information