Issue to be solved
Some of the new stdlib functions perform non-constant operations, which require computation metering:
- Master
- Master, not merged yet
- Stable Cadence
Suggested Solution
Implementations should call ReportComputation, potentially with a new (?) common.ComputationKind.
Metering might also require "inlining" existing calls to the Go stdlib, so that each iteration of an operation can be metered up-front.
Issue to be solved
Some of the new stdlib functions perform non-constant operations, which require computation metering:
String.joinfunction #2762mapin Fixed/Variable sized Array types #2737filterin Fixed/Variable sized Array types #2678reversein Fixed/Variable sized Array type #2654reverseInPlacein Variable/Fixed size Array #2626String.replaceAllinstance function #2814String.splitfunction #2791Suggested Solution
Implementations should call
ReportComputation, potentially with a new (?)common.ComputationKind.Metering might also require "inlining" existing calls to the Go stdlib, so that each iteration of an operation can be metered up-front.