Compile policy into an optimized state machine #9361
Labels
C: core
P: default
Priority: default. Default priority for new issues, to be replaced given sufficient information.
R: duplicate
Resolution: Another issue exists that is very similar to or subsumes this one.
T: enhancement
Type: enhancement. A new feature that does not yet exist or improvement of existing functionality.
How to file a helpful issue
The problem you're addressing (if any)
qrexec policy evaluation uses a slow linear search in Python.
The solution you'd like
Compile the policy into an optimized state machine that can evaluate policy in O(log N) time or better, where N is the number of rules in the policy. Then use this optimized state machine to respond to queries.
Qrexec policy evaluation is a simpler version of ML pattern matching, for which highly efficient algorithms are known.
The value to a user, and who that user might be
All users will benefit from faster qrexec calls.
Completion criteria checklist
(This section is for developer use only. Please do not modify it.)
The text was updated successfully, but these errors were encountered: