2

Pretty simple question: i.e. I have a dummy contract like this one:

contract simple {
    uint[] dataArray;

    function push_one_more() {
        dataArray.push(1);
    }
}

How does the cost of calling push_one_more function depends of the dataArray size? Is it line, quadratically or maybe even exponential correlation?

q9f
  • 32,913
  • 47
  • 156
  • 395
Sergey Potekhin
  • 1,360
  • 2
  • 13
  • 28
  • look at http://ethereum.stackexchange.com/questions/872/what-is-the-cost-to-store-1kb-10kb-100kb-worth-of-data-into-the-ethereum-block – Badr Bellaj Nov 22 '16 at 20:26

0 Answers0