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

Function Optimize

interpreter/interpreter.go:192–194  ·  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

190// Optimize will pre-compute operations such as list and map construction and optimize
191// call arguments to set membership tests. The set of optimizations will increase over time.
192func Optimize() PlannerOption {
193 return CustomDecoratorV2(decOptimize())
194}
195
196// RegexOptimization provides a way to replace an InterpretableCall for a regex function when the
197// RegexIndex argument is a string constant. Typically, the Factory would compile the regex pattern at

Calls 2

decOptimizeFunction · 0.85
CustomDecoratorV2Function · 0.70