3 ms·
As of 5.4.0 arrow functions are more performant than binding, FYI: https://github.com/nodejs/node/pull/3622 https://github.com/nodejs/node/pull/3622
by zackify 11y ago
As of 5.4.0 arrow functions are more performant than binding, FYI: https://github.com/nodejs/node/pull/3622 https://github.com/nodejs/node/pull/3622
- krisdol 11y agoWoohoo! I've been hoping that this guy's Function.bind optimizations land before 6.0: http://benediktmeurer.de/2015/12/25/a-new-approach-to-function-prototype-bind/ http://benediktmeurer.de/2015/12/25/a-new-approach-to-functi... But you prompted me to check on the status of his work, and was happy to find a new post: http://benediktmeurer.de/2016/01/14/optimizing-bound-functions-further/ http://benediktmeurer.de/2016/01/14/optimizing-bound-functio... It looks like V8 will finally be able to inline bound functions (https://codereview.chromium.org/1581343002 https://codereview.chromium.org/1581343002)! That's huge!