From ac697326a6045eaa760b159e4bda37c57be61cbf Mon Sep 17 00:00:00 2001 From: Jeffrey Wilcke Date: Thu, 6 Aug 2015 23:06:47 +0200 Subject: core/vm: reduced big int allocations Reduced big int allocation by making stack items modifiable. Instead of adding items such as `common.Big0` to the stack, `new(big.Int)` is added instead. One must expect that any item that is added to the stack might change. --- tests/vm_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/vm_test.go b/tests/vm_test.go index 6b6b179fd..afa1424d5 100644 --- a/tests/vm_test.go +++ b/tests/vm_test.go @@ -30,7 +30,7 @@ func BenchmarkVmAckermann32Tests(b *testing.B) { func BenchmarkVmFibonacci16Tests(b *testing.B) { fn := filepath.Join(vmTestDir, "vmPerformanceTest.json") - if err := BenchVmTest(fn, bconf{"fibonacci16", true, true}, b); err != nil { + if err := BenchVmTest(fn, bconf{"fibonacci16", true, false}, b); err != nil { b.Error(err) } } -- cgit v1.2.3