microsoft / rego-cpp

A C++ interpreter for the OPA policy language Rego
MIT License
33 stars 9 forks source link

Add compile caching for Interpreter #75

Open matajoh opened 1 year ago

matajoh commented 1 year ago

At the moment the interpreter restarts compilation for each query. It should instead cache the step immediately before unification so that everything but the input and query are already good to go.

Notes

matajoh commented 3 months ago

A step towards this has been done in 0.4.0, with intermediate caching of all documents and input terms. There is still more that could potentially be done, however.