Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Is the FN call overhead really that horrible in lodash?

The overall size overhead is what is horrible.

> Also, the transformed code (like all transformed babel) is most likely ugly and more verbose than using lodash's get, no?

Yes, but it also performs at what is probably as-close-to-optimal as possible. The resulting ternaries are extremely easy to work with for even the most basic of JS compilers. Source maps work well - I don't see this as a downside at all.



Naw, Lodash is modular. You can cherry-pick its modules. It's less than 716 bytes (with lodash-webpack-plugin).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: