Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In main.rego there are two places where we extract a relative path from the input policy file. This was however done in a loop despite only using variables from outside of the loop. Turns out there was close to a million allocations hiding there, lol. **BenchmarkRegalLintingItself-10 Before** ``` 1875658375 ns/op 3539151104 B/op 70020076 allocs/op ``` **BenchmarkRegalLintingItself-10 After** ``` 1821361667 ns/op 3499082704 B/op 69062781 allocs/op ``` Signed-off-by: Anders Eknert <[email protected]>
- Loading branch information