Skip to content

Commit 382d9d5

Browse files
committed
add estimates for new memory kinds and improve estimates for some existing memory kinds
1 parent 6152691 commit 382d9d5

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

fvm/meter/memory_meter.go

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -257,16 +257,25 @@ var (
257257
common.MemoryKindContractVariable: 17,
258258
common.MemoryKindGoSliceLength: 17,
259259

260-
common.MemoryKindCompiler: 17,
261-
common.MemoryKindCompilerGlobal: 17,
262-
common.MemoryKindCompilerConstant: 17,
263-
264-
common.MemoryKindBoundFunctionVMValue: 17,
260+
common.MemoryKindBoundFunctionVMValue: 57,
265261
common.MemoryKindImplicitReferenceVMValue: 17,
266262

267-
common.MemoryKindArrayIterator: 9,
268-
common.MemoryKindDictionaryKeyIterator: 9,
269-
common.MemoryKindStringIterator: 9,
263+
common.MemoryKindArrayIterator: 49,
264+
common.MemoryKindDictionaryKeyIterator: 17,
265+
common.MemoryKindStringIterator: 17,
266+
267+
common.MemoryKindCompiler: 489,
268+
common.MemoryKindCompilerLocal: 5,
269+
common.MemoryKindCompilerGlobal: 65,
270+
common.MemoryKindCompilerConstant: 33,
271+
common.MemoryKindCompilerFunction: 169,
272+
common.MemoryKindCompilerInstruction: 17,
273+
common.MemoryKindCompilerBBQProgram: 169,
274+
common.MemoryKindCompilerBBQConstant: 25,
275+
common.MemoryKindCompilerBBQFunction: 89,
276+
common.MemoryKindCompilerBBQVariable: 25,
277+
common.MemoryKindCompilerBBQImport: 33,
278+
common.MemoryKindCompilerBBQContract: 33,
270279
}
271280
)
272281

0 commit comments

Comments
 (0)