It seems like every time I try to execute a contract function through the browser compiler that requires more than around 50k gas (give or take) to execute, the browser tab's memory gets to around 1GB and the compiler crashes.
I'm using chrome and I tried executing a wide range of functions. When I run the function directly on a parity node I get the response correctly so it seems to me like it's a compiler issue.
Anyone else experienced it and know a workaround?
Note that it seems like it's reproduced more easily when using loops/arrays, maybe because of the array assignments?
Here's the example contract -
pragma solidity ^0.4.8;
contract TestContract {
function TestContract() {
}
function test(uint256 iterations) constant {
int256[] memory a = new int256[](1000);
for (uint32 i = 0; i < iterations; ++i) {
a[i] = i;
}
}
}
I pass more than 500 as an argument to the function and the compiler dies.