-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
1 parent
e507c41
commit b806265
Showing
2 changed files
with
14 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters