Till Schneidereit (2015-02-16T18:46:57.000Z)
d at domenic.me (2015-02-21T00:40:16.104Z)
FWIW I have a patch pending in [bug 1129313][1] that makes `for .. of` 4x as fast for Maps. That is without even having scalar replacement working yet, which probably explains why v8 is still 2x as fast. JSC is about 10% slower than patched SpiderMonkey. As explained in comment 12 of that bug, I haven't found a way to do the same thing - iterating over all entries (i.e., properties) and getting both key and value - anywhere nearly as fast on a plain object. That probably means I'm overlooking something, but at the very least I think the concerns about this being hard to optimize might be slightly overblown. [1]: https://bugzilla.mozilla.org/show_bug.cgi?id=1129313