-
Notifications
You must be signed in to change notification settings - Fork 814
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance #17
Comments
I don't think there's a need to qualify the post as most get it. If you're only using a handful of methods on arrays and don't care about nullish guards, object iteration, smoothing over enviro/ES5/ES6 issues, FP goodies, iteratee shorthands, lazy evaluation, or other enhancements then built-ins are the way to go. Folks who use lodash know its 270+ modules work great combo'ed with ES6, enabling cleaner code and empowering beyond built-ins. |
@BBCMarkMcDonnell, Hi Mark, yes you are quite right about the performance. That's why I've fixed the word to remove the claim that native is faster. 7d71473 @jdalton Great to know the goodies of Lodash. : ) I've learned a lot through you guys. Cheers. |
@jdalton Again John, thank you for your hard work on Lodash which makes our developers' lives easier. It is invaluable treasure for our developers. |
Cool. Thanks for the feedback |
I have created You-Dont-Know-About-Lodash-Underscore which contains performance an differences between lodash/underscore and native methods. |
I appreciate the sentiment but pushing static micro benchmark results isn't that great either. I'm a fan of built-ins. As the Chakra performance PM I pushed-to and succeeded-in optimizing a few of them. For more on lodash and JS performance see my ThunderPlains talk. |
@stevemao Thank you for that, but the main purpose for this list is for reminding our developers that, what methods are already native supported. @jdalton
Yes you are absolutely right. But, in case I want more complex methods, my personal choice is Immutable.js, I like the performance of immutable.js in some of my Redux + React projects. I am not sure about what @gaearon 's opinion about this, but personally, I find Immutable.js as a whole is more convenient for me to gain predictability through immutability than Lodash. |
Lodash and Immutable are a bit different. Lodash is a generic utility library, like a stdlib, with a wider range of methods catering to more scenarios. Lodash's It'd be great if you could follow up on #21. A disclaimer would go a long way in clearing things up. |
@jdalton I've included disclaimer, let me know if you'd like any more changes regarding this issue. |
That's perfect! Thank you! |
Hello,
Just a quick comment that @jdalton (Microsoft) has investigated the performance implications of using native over abstraction libraries and it appears native is generally slower.
I think it would be worth making note of this within your README as it's otherwise a bit misleading.
Thanks
The text was updated successfully, but these errors were encountered: