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

Function estimateStringScan

ext/costs.go:35–37  ·  view source on GitHub ↗
(sz checker.SizeEstimate)

Source from the content-addressed store, hash-verified

33)
34
35func estimateStringScan(sz checker.SizeEstimate) (checker.CostEstimate, *checker.SizeEstimate) {
36 return estimateTraversal(sz, stringCostFactor, nil)
37}
38
39func estimateListAlloc(sz checker.SizeEstimate, costFactor float64) (checker.CostEstimate, *checker.SizeEstimate) {
40 return estimateTraversal(sz, costFactor, &listAllocCost)

Calls 1

estimateTraversalFunction · 0.85

Tested by

no test coverage detected