▲ | komali2 4 days ago | ||||||||||||||||||||||||||||||||||
What, like lodash? Some of those hail from a time that we didn't have a good set of native methods. So the library is just legacy'd in. But I do agree, lodash performance compared to native functions is crazy bad. | |||||||||||||||||||||||||||||||||||
▲ | mwcz 4 days ago | parent [-] | ||||||||||||||||||||||||||||||||||
Is that the case? I saw a talk by the author of lodash years ago and he touched on performance. The built-in functions are (or were?) implemented in JS, level terrain for a library like lodash to beat "native" performance. Lodash beat browser built-ins in some cases. The talk was ten years ago, though, so things may have changed. Perhaps more of the built-ins are written in C++ now. Here's the talk: https://youtu.be/2DzaOnOyCqE?si=McCMjzGopzSCoaCi | |||||||||||||||||||||||||||||||||||
|