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?

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.