mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-12 19:32:48 -06:00
7934d47f64
Creating the scalars map for each node was expensive, and would in many cases sit unused. Now we initialize it only before use, which shaves off almost a million allocations from `regal lint bundle`, and I imagine is quite a boost for evaluation of many other policy types. Also: - Add benchmarks for the indexer that I used to try things out - Avoid a few heap allocations by avoiding interface boxing to Value Signed-off-by: Anders Eknert <anders.eknert@apple.com> Co-authored-by: Stephan Renatus <stephan.renatus@gmail.com>