Skip to content

Conversation

@anderseknert
Copy link
Member

Or something in that ballpark. This is accomplished by tweaking existing walk/visitor implementations where appropriate, and by introducing a new visitor type that while more limited, is able to perform much better where it can be used. Most impressive of the improvements here is the new WalkRules implementation, as the benchmark included in this change shows. The most impactful change is however the improved use of the various VarVisitors used during the compilation process.

Compiling the Regal bundle:

OPA v1.11.0 (main)

67207511 ns/op  42652069 B/op    1032387 allocs/op

Now

62502125 ns/op  35918354 B/op     929634 allocs/op

@netlify
Copy link

netlify bot commented Nov 26, 2025

Deploy Preview for openpolicyagent ready!

Name Link
🔨 Latest commit 1ac9ed7
🔍 Latest deploy log https://app.netlify.com/projects/openpolicyagent/deploys/69281a7d15752b00088b2fd1
😎 Deploy Preview https://deploy-preview-8078--openpolicyagent.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

@srenatus srenatus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work 👏 Just a nitpick re: removing an exported method

Or something in that ballpark. This is accomplished by tweaking
existing walk/visitor implementations where appropriate, and by
introducing a new visitor type that while more limited, is able
to perform much better where it can be used. Most impressive of
the improvements here is the new `WalkRules` implementation, as
the benchmark included in this change shows. The most impactful
change is however the improved use of the various `VarVisitor`s
used during the compilation process.

Compiling the Regal bundle:

**OPA v1.11.0 (main)**
```
67207511 ns/op  42652069 B/op    1032387 allocs/op
```

**Now**
```
62502125 ns/op  35918354 B/op     929634 allocs/op
```

Signed-off-by: Anders Eknert <[email protected]>
@srenatus srenatus merged commit 1f5b294 into open-policy-agent:main Nov 27, 2025
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants