Reviewers: adamk,
Message:
Remember that we talked a bit about how slow forEach is due to the in
operator.
This hack exposes whether the array is packed, allowing us to skip the in
check.
The results are promising, it gives a 2x perf gain:
$ out/ia32.release/d8 test.js
ForEach: 183577
ForEach2: 370329
Description:
Hack forEach to use HasFastPackedElements
WIP
BUG=
Please review this at https://codereview.chromium.org/22545007/
SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M src/array.js
M src/objects-inl.h
M src/objects.h
M src/runtime.h
M src/runtime.cc
A test.js
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.