Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Mel Smith" Newsgroups: comp.lang.javascript Subject: Re: 'pushing' vs direct array assignment ? Date: Mon, 3 Jun 2013 14:46:04 -0600 Lines: 20 Message-ID: References: <7dc473f5-c0e8-415b-92e1-f6201220fe9d@j8g2000yqa.googlegroups.com> X-Trace: individual.net Z3K6ArPYWvmk1K2VzF4MVgOSk/cG/AR08vfyr09kf7mGvyMnKT Cancel-Lock: sha1:V9DG7+VmpUyuRCJJxCx5jAm3H7Y= X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: csiph.com comp.lang.javascript:20131 Scott said: One micro-benchmark can be found here: In all the more recent browsers except IE9, `push` is faster. Unfortunately, in IE8 and IE9, it's quite a bit slower. And since that's already the slowest environment, you'll have to make a decision with that in mind. But regardless of speed, `push` is certainly cleaner. And in my mind, that counts for a fair bit. Thanks Scott --- I'll probably revert to .push -Mel