Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The construction of intermediate throwaway `ast.Array`s caused almost 5 million allocations when running `regal lint` against its own bundle. While the results are likely more impressive for Regal policies than the average one, this is still a substantial improvement across a large group of policies. **regal lint OPA main** ``` BenchmarkRegalLintingItself-10 1 3317838417 ns/op 6611412800 B/op 124873123 allocs/op ``` **regal lint this branch** ``` BenchmarkRegalLintingItself-10 1 3140384416 ns/op 6590159176 B/op 120098613 allocs/op ``` Signed-off-by: Anders Eknert <[email protected]>
- Loading branch information