Comment #17 on issue 2159 by RetroModular: Add support for rest parameters
https://code.google.com/p/v8/issues/detail?id=2159
I know this is still work-in-progress but are you guys aware of the
performance issues with the current implementation?
When used as varargs, calling a function that uses rest parameters is about
90 times slower than calling a function that accesses the arguments object.
function f2(a, b, c) {} // fast
function f1() {} // accessing arguments[n], fast
function f3(...values) {} // very slow
When used to expand an array, calling a function is about 1400 times slower
than explicitly passing arguments to the function.
foo(1, 2, 3); // fast
foo(numbers[0], numbers[1], numbers[2]); // fast
foo(...numbers); // extremely slow
Just a heads-up for you guys :)
--
44.0.2392.0 canary (64-bit)
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
v8-dev mailing list
v8-dev@googlegroups.com
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 v8-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.