DescriptionOptimize Map/Set.prototype.forEach
Instead of using an iterator result object and an entries array
(for Map) we introduce a new runtime function that uses an array
as an out param.
On the Map ForEach perf test this leads to a 2.5x performance
improvement. On the overall Map and Set tests this leads to a 18%
and 13% improvement respectively.
BUG=None
LOG=Y
R=danno@chromium.org
Committed: https://code.google.com/p/v8/source/detail?r=22027
Patch Set 1 #Patch Set 2 : Use array as out param #Patch Set 3 : Use same Next method for iterator next as well #Patch Set 4 : Also get rid of NewIteratorResultObject since there are no more users of it #
Total comments: 1
Patch Set 5 : Cleanup #
Messages
Total messages: 10 (0 generated)
|