trackStringJoinCost tracks runtime cost for string join operations, accounting for traversal and the size of the result.
(args []ref.Val, result ref.Val)
| 1078 | // trackStringJoinCost tracks runtime cost for string join operations, |
| 1079 | // accounting for traversal and the size of the result. |
| 1080 | func trackStringJoinCost(args []ref.Val, result ref.Val) *uint64 { |
| 1081 | traversalCost := float64(safeAdd(actualSize(args[0]), 1)) * stringCostFactor |
| 1082 | cost := safeAdd(callCost, uint64(math.Ceil(traversalCost)), actualSize(result)) |
| 1083 | return &cost |
| 1084 | } |
nothing calls this directly
no test coverage detected