d3-queue icon indicating copy to clipboard operation
d3-queue copied to clipboard

Avoid passing `arguments` outside of `defer` so that V8 does not deoptimize `defer`.

Open jimkang opened this issue 8 years ago • 0 comments

V8 will deoptimize functions that pass arguments outside of a function, which happen in defer.

Some discussion about it:

https://github.com/GoogleChrome/devtools-docs/issues/53#issuecomment-51941358 http://stackoverflow.com/a/29200041/87798

While this has not been a critical performance issue for me yet, it does put warning icons in the DevTools profiler, which is really distracting, and seems fairly straightforward to address, so I made the change here.

jimkang avatar Mar 11 '17 19:03 jimkang