Skip to content

perf: Optimize clone#443

Merged
anakrish merged 1 commit into
microsoft:mainfrom
anakrish:clone-o1
Aug 7, 2025
Merged

perf: Optimize clone#443
anakrish merged 1 commit into
microsoft:mainfrom
anakrish:clone-o1

Conversation

@anakrish

Copy link
Copy Markdown
Collaborator

Introduce the notion of CompiledPolicy to hold stuff that remains immutable during evaluation - e.g. rules, function, schedules etc

Cloning takes about 60 nano seconds for an engine loaded with ACI policies. Earlier it used to take 40 microseconds. Thus there is easily more than 100x speedup.

Comment thread src/interpreter.rs Fixed
Introduce the notion of CompiledPolicy to hold stuff that
remains immutable during evaluation - e.g. rules, function,
schedules etc

Cloning takes about 60 nano seconds for an engine loaded with
ACI policies. Earlier it used to take 40 microseconds.
Thus there is easily more than 100x speedup.

Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
Comment thread src/interpreter.rs
Comment thread src/interpreter.rs
Comment thread src/interpreter.rs
Comment thread src/interpreter.rs
@anakrish anakrish merged commit dbba57f into microsoft:main Aug 7, 2025
33 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.

3 participants