MCPcopy
hub / github.com/expr-lang/expr / Optimize

Function Optimize

expr.go:131–135  ·  view source on GitHub ↗

Optimize turns optimizations on or off.

(b bool)

Source from the content-addressed store, hash-verified

129
130// Optimize turns optimizations on or off.
131func Optimize(b bool) Option {
132 return func(c *conf.Config) {
133 c.Optimize = b
134 }
135}
136
137// DisableShortCircuit turns short circuit off.
138func DisableShortCircuit() Option {

Callers 4

TestExprFunction · 0.92
TestCompileFunction · 0.92
TestOptimizeFunction · 0.92

Calls

no outgoing calls

Tested by 4

TestExprFunction · 0.74
TestCompileFunction · 0.74
TestOptimizeFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…