MCPcopy Create free account
hub / github.com/cel-expr/cel-go / Optimize

Function Optimize

interpreter/interpreter.go:201–203  ·  view source on GitHub ↗

Optimize will pre-compute operations such as list and map construction and optimize call arguments to set membership tests. The set of optimizations will increase over time.

()

Source from the content-addressed store, hash-verified

199// Optimize will pre-compute operations such as list and map construction and optimize
200// call arguments to set membership tests. The set of optimizations will increase over time.
201func Optimize() PlannerOption {
202 return CustomDecoratorV2(decOptimize())
203}
204
205// RegexOptimization provides a way to replace an InterpretableCall for a regex function when the
206// RegexIndex argument is a string constant. Typically, the Factory would compile the regex pattern at

Calls 2

decOptimizeFunction · 0.85
CustomDecoratorV2Function · 0.70