3 ms·
Wow. Was that just from the extra function instances and closures being created?
by brundolf 5y ago
Wow. Was that just from the extra function instances and closures being created?
- eurasiantiger 5y agoThe story doesn’t tell, but looking at the Ramda source [1][2][3], it sure looks like it: each application of a curried function creates a new curried function on the fly. Didn’t check deoptigate, but I’m willing to bet V8 doesn’t optimize that well. 1: https://github.com/ramda/ramda/blob/master/source/curry.js https://github.com/ramda/ramda/blob/master/source/curry.js 2: https://github.com/ramda/ramda/blob/master/source/internal/_curry1.js https://github.com/ramda/ramda/blob/master/source/internal/_... 3: https://github.com/ramda/ramda/blob/master/source/internal/_curryN.js https://github.com/ramda/ramda/blob/master/source/internal/_...