We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2aef60e commit 8256400Copy full SHA for 8256400
data/transactions/logic/eval.go
@@ -907,6 +907,10 @@ func (cx *EvalContext) step() error {
907
908
opcost := deets.Cost
909
if opcost == 0 {
910
+ // We use a constant (deets.Cost) to avoid the cost of an indirect
911
+ // function call in most cases. Consider getting the cost details into
912
+ // OpSpec so that a single (inlinable?) function can compute the cost,
913
+ // rather than a per opcode function pointer.
914
opcost = deets.costFunc(cx.program, cx.pc)
915
}
916
0 commit comments