W3C home > Mailing lists > Public > public-script-coord@w3.org > October to December 2013

Re: How to correctly spec sequences requiring an iterable

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 18 Nov 2013 10:45:51 -0800
Message-ID: <CAAWBYDD5SyBSLVvdD2mu38OpKb0PBf2KJwLPpLD=tsBJkf3C-Q@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: Domenic Denicola <domenic@domenicdenicola.com>, "public-script-coord@w3.org" <public-script-coord@w3.org>
On Mon, Nov 18, 2013 at 10:09 AM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> The performance cost of using the object-happy insanity that is
> IteratorStep/IteratorValue completely dwarfs the extra over an array here,
> as far as I can tell.  ;)

As noted in the threads about iterators, engines should be able to
optimize this away in common cases, like a for-of loop.

~TJ
Received on Monday, 18 November 2013 18:46:43 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:19 UTC