{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/11283","labels_url":"https://api.github.com/repos/npm/npm/issues/11283/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/11283/comments","events_url":"https://api.github.com/repos/npm/npm/issues/11283/events","html_url":"https://github.com/npm/npm/issues/11283","id":128770331,"number":11283,"title":"Progress bar noticeably slows down npm install","user":{"login":"zakjan","id":173585,"avatar_url":"https://avatars.githubusercontent.com/u/173585?v=3","gravatar_id":"","url":"https://api.github.com/users/zakjan","html_url":"https://github.com/zakjan","followers_url":"https://api.github.com/users/zakjan/followers","following_url":"https://api.github.com/users/zakjan/following{/other_user}","gists_url":"https://api.github.com/users/zakjan/gists{/gist_id}","starred_url":"https://api.github.com/users/zakjan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zakjan/subscriptions","organizations_url":"https://api.github.com/users/zakjan/orgs","repos_url":"https://api.github.com/users/zakjan/repos","events_url":"https://api.github.com/users/zakjan/events{/privacy}","received_events_url":"https://api.github.com/users/zakjan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/npm/npm/labels/bug","name":"bug","color":"C40233"},{"url":"https://api.github.com/repos/npm/npm/labels/performance","name":"performance","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":41,"created_at":"2016-01-26T09:29:03Z","updated_at":"2016-01-27T21:26:28Z","closed_at":null,"body":"Compare these runtimes of `npm install`:\r\n\r\n```\r\n$ rm -r node_modules\r\n$ npm set progress=false\r\n$ time npm install\r\nnpm install  19.91s user 2.66s system 71% cpu 31.667 total\r\n\r\n$ rm -r node_modules\r\n$ npm set progress=true\r\n$ time npm install\r\nnpm install  33.26s user 3.19s system 74% cpu 48.733 total\r\n```\r\n\r\nNpm 3.5.2. Both commands were run with already warmed-up cache. Progress bar may be responsible for up to 50% slow down.\r\n\r\nOriginal source: https://twitter.com/gavinjoyce/status/691783314261331969 by @GavinJoyce"},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/175861820","html_url":"https://github.com/npm/npm/issues/11283#issuecomment-175861820","issue_url":"https://api.github.com/repos/npm/npm/issues/11283","id":175861820,"user":{"login":"tracker1","id":444316,"avatar_url":"https://avatars.githubusercontent.com/u/444316?v=3","gravatar_id":"","url":"https://api.github.com/users/tracker1","html_url":"https://github.com/tracker1","followers_url":"https://api.github.com/users/tracker1/followers","following_url":"https://api.github.com/users/tracker1/following{/other_user}","gists_url":"https://api.github.com/users/tracker1/gists{/gist_id}","starred_url":"https://api.github.com/users/tracker1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tracker1/subscriptions","organizations_url":"https://api.github.com/users/tracker1/orgs","repos_url":"https://api.github.com/users/tracker1/repos","events_url":"https://api.github.com/users/tracker1/events{/privacy}","received_events_url":"https://api.github.com/users/tracker1/received_events","type":"User","site_admin":false},"created_at":"2016-01-27T21:26:28Z","updated_at":"2016-01-27T21:26:28Z","body":"@STRML What's the memory footprint look like for a large-ish npm install?\r\n\r\nJust curious, on a project last year, I found that forcing GC every N cycles through a stream kept the memory footprint pretty low, which helped in our test deploy with was a resource constrained system."}}