Why using `_.chain` is a mistake.
Izaak Schroeder
90418

“ The lack of monolithic build also means that you lose the performance benefits of lazy evaluation lodash provides. […]
Given the typically fairly small constants in general front-end lodash usage, the performance difference is likely negligible.”

What if you have big data sets and you use _.chain to optimize their transformations by shortcut fusion? In that case we loose on runtime performance by saving some bandwidth (~10kB? which is negligible compared to size of modern js frameworks).

Would be interesting to see a test case to compare _.chain and _.flow (not monolithic) performance

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.