How to use the Intermediate Representation (IR) of a Rego module to evaluate data #400
Replies: 2 comments 1 reply
-
Hi @tomsfernandez 👋 The IR is created via a separate compilation step ( If you have performance issues, perhaps we could try and figure out what's causing them? Some more details would be helpful if so :) |
Beta Was this translation helpful? Give feedback.
-
Hi @anderseknert sorry for taking so long to answer. I'll explore to pre-compile the policy into WASM and see if that improves the performance of my policy. Our rego policy is 2083 lines long (I don't know if that is a lot or not). Also: is there a way to benchmark how much time time it takes to evaluate every single rule of a rego policy? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm interested on keeping the IR of some rego modules that do not change stashed. I hope this will improve the performance of my evaluation.
The thing is, I couldn't find examples in the documentation that show how this is done, can someone give me a hand please ?
Beta Was this translation helpful? Give feedback.
All reactions