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)
| 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. |
| 781 | func trackAllocatingListCall(costFactor float64, size uint64) *uint64 { |
| 782 | cost := safeAdd(uint64(float64(size)*costFactor), callCost, common.ListCreateBaseCost) |
| 783 | return &cost |
| 784 | } |
no test coverage detected