forked from open-policy-agent/opa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
types: New algorithm for (Any).Union + new benchmarks (open-policy-ag…
…ent#6228) This commit swaps out the old algorithm in the `(Any).Union` method that would explode on some inputs to one that uses dramatically less memory, and runs in nearly linear time and memory usage. This commit also includes improvements to the `BenchmarkCompileDynamicPolicy` benchmark, as well as new benchmarks for the `Any` type's `Merge` and `Union` methods. Signed-off-by: Philip Conrad <[email protected]>
- Loading branch information
1 parent
38733ed
commit 434d324
Showing
3 changed files
with
121 additions
and
17 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
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