Closed Bug 650075 Opened 13 years ago Closed 13 years ago

Make Array.push and Array.pop faster

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 653962

People

(Reporter: dmandelin, Unassigned)

References

(Blocks 1 open bug)

Details

From bug 643615 comment 4. This is probably good for a small win on deltablue.

function f() {
    for (var j = 0; j < 100000; ++j) {
        var a = [];
        for (var i = 0; i < 100; ++i) {
            a.push(i);
        }
    }
}

var t0 = new Date;
f();
print(new Date - t0);
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.