StringScan creates an expression representing the cost of scanning a string.
(expr QuantityExpr)
| 925 | |
| 926 | // StringScan creates an expression representing the cost of scanning a string. |
| 927 | func StringScan(expr QuantityExpr) QuantityExpr { |
| 928 | return Scale(expr, StringTraversalCostFactor) |
| 929 | } |
| 930 | |
| 931 | // ListAlloc creates an expression representing list allocation cost with base cost and scaled element count. |
| 932 | func ListAlloc(elemCount QuantityExpr, costFactor float64) QuantityExpr { |