Live data from Hacker News

Disabling npm's progress bar yields a 2x npm install speed improvement

twitter.com

11–20 of 187 posts

Re: Disabling npm's progress bar yields a 2x npm install speed improvement

#11
post #9

Progress bar or not, npm has gotten extremely slow with v3, to the extent that someone is working on a performance-centered alternative called ied: http://gugel.io/ied/ installs are literally the #1 thing npm needs to do well, and I really hope we see some improvement soon.

Awesome tool, but wish the url was a bit easier to spell/remember!

Re: Disabling npm's progress bar yields a 2x npm install speed improvement

#12
post #9

Progress bar or not, npm has gotten extremely slow with v3, to the extent that someone is working on a performance-centered alternative called ied: http://gugel.io/ied/ installs are literally the #1 thing npm needs to do well, and I really hope we see some improvement soon.

Even more important, npm doesn't reliably reproduce builds. Different runs of the same shrinkwrapped build could either fail or succeed -- which is odd given that builds should be deterministic. Additionally, shrinkwrap is also broken in the same way.

This is the first time I've heard of ied, a little competition could go a long way!

Re: Disabling npm's progress bar yields a 2x npm install speed improvement

#13

...has he controlled for network speed? Unless he's set up a local NPM caching proxy, he's going over the 'net for these packages. It'll take more than 1 datum before I believe this hype.

The network utilisation is much different between npm 2 and 3:

https://github.com/npm/npm/issues/10380

Re: Disabling npm's progress bar yields a 2x npm install speed improvement

#14
post #6

The funky progress bar is about the coolest thing with npm. They could let it take a minute if they wanted too and i would keep watching it with amazement.

npm 2.x user here. Does anybody want to share a video of the 3.x progress bar? (Easy with QuickTime or CloudApp, btw)

Re: Disabling npm's progress bar yields a 2x npm install speed improvement

#15

...has he controlled for network speed? Unless he's set up a local NPM caching proxy, he's going over the 'net for these packages. It'll take more than 1 datum before I believe this hype.

Also the second run probably used stuff that was put in the npm cache during the first run. Not sure how good a test this is.

A good read: "Programmers need to learn statistics or I will kill them all" http://zedshaw.com/archive/programmers-need-to-learn-statist...

Re: Disabling npm's progress bar yields a 2x npm install speed improvement

#17
post #6

The funky progress bar is about the coolest thing with npm. They could let it take a minute if they wanted too and i would keep watching it with amazement.

you mean the progress bar that takes up way too much screen real estate to the extent that it completely cuts off any useful information from the install process?

Re: Disabling npm's progress bar yields a 2x npm install speed improvement

#18

...has he controlled for network speed? Unless he's set up a local NPM caching proxy, he's going over the 'net for these packages. It'll take more than 1 datum before I believe this hype.

Also the second run probably used stuff that was put in the npm cache during the first run. Not sure how good a test this is. A good read: "Programmers need to learn statistics or I will kill them all" http://zedshaw.com/archive/programmers-need-to-learn-statist...

It yields the same results in reverse order and also when the cache is primed for both and cleared for both

Re: Disabling npm's progress bar yields a 2x npm install speed improvement

#19
post #7

Some further details on the issue: https://github.com/npm/npm/issues/11283

Please refrain from adding unhelpful comments to the issue.

It is tremendously unfortunate that that needs to be said at all.

Re: Disabling npm's progress bar yields a 2x npm install speed improvement

#20
post #11
post #9

Progress bar or not, npm has gotten extremely slow with v3, to the extent that someone is working on a performance-centered alternative called ied: http://gugel.io/ied/ installs are literally the #1 thing npm needs to do well, and I really hope we see some improvement soon.

Awesome tool, but wish the url was a bit easier to spell/remember!

just gugel it
Post reply on HN