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

Function trackAllocatingListCall

ext/lists.go:781–784  ·  view source on GitHub ↗

trackAllocatingListCall computes costs as a function of the size of the result list with a baseline cost for the call dispatch and the associated list allocation.

(costFactor float64, size uint64)

Source from the content-addressed store, hash-verified

779// trackAllocatingListCall computes costs as a function of the size of the result list with a baseline cost
780// for the call dispatch and the associated list allocation.
781func trackAllocatingListCall(costFactor float64, size uint64) *uint64 {
782 cost := safeAdd(uint64(float64(size)*costFactor), callCost, common.ListCreateBaseCost)
783 return &cost
784}

Callers 3

trackListOutputSizeFunction · 0.85
trackListFlattenFunction · 0.85
trackListSelfCompareFunction · 0.85

Calls 1

safeAddFunction · 0.85

Tested by

no test coverage detected