News for hackers. Stuff that matters.
Re:After a year of using Node.js in production by esailija on Tuesday May 03, 2016 @02:59AM (#11618497)
Startup speed is terrible with that approach, each browserified module adds like 10x more code as boilerplate than something like isArray implementation would take. Then every module dependency is resolved dynamically at runtime, which will also quickly become a performance problem even when you aren't using micromodules.
Re:After a year of using Node.js in production by Klathmon on Tuesday May 03, 2016 @06:36AM (#11619366)
I haven't touched browserify, but with webpack what you said could not be more false...

Webpack doesn't bundle at runtime, it doesn't add any amount of code overhead per module that I can easily measure, and it doesn't trash startup speed.

Re:After a year of using Node.js in production by nilliams on Tuesday May 03, 2016 @08:02AM (#11619754)
Same goes for browserify. You can have lots of tiny modules and (watchify especially) is fast to re-build. And yeah perf of 'require' statements at run-time is a non-issue.
Re:After a year of using Node.js in production by 15155 on Tuesday May 03, 2016 @12:08PM (#11621877)
> it doesn't add any amount of code overhead per module

It's something like tens of bytes (minified), FWIW, for the closure that each module gets put into.