npm-check icon indicating copy to clipboard operation
npm-check copied to clipboard

insane memory use?

Open lord-hieros opened this issue 8 years ago • 6 comments

When I use npm-check it uses 10gb of ram for some reason. Does anyone haappen to know why this happens?

lord-hieros avatar Aug 18 '16 13:08 lord-hieros

That could explain why it's slow.

oliviertassinari avatar Aug 23 '16 12:08 oliviertassinari

I'm getting the same thing... extremely slow, and very high memory usage.

iMagdy avatar Oct 12 '16 09:10 iMagdy

I just tried running npm-check for the first time, noticed my computer was running super slow, and stopped it via Ctrl+C. I then re-tried it a few minutes later with npm-check --skip-unused, noticed slow performance, and opened activity monitor... to see over "50GB" of memory in use.

image

sman591 avatar Mar 27 '17 19:03 sman591

I have several large files in the folder I'm running npm-check. A dependency depcheck appears to load into memory any file it comes across. This behavior seems to be triggered by using any specials parsers. By default depcheck uses all available specials.

This is combined with the fact that --skip-unused doesn't stop the check from being run, it just doesn't report it. There needs to be a return after this line.

AaronAsAChimp avatar Apr 12 '17 15:04 AaronAsAChimp

@AaronAsAChimp good catch!

On a side note, I ended up using yarn upgrade-interactive, it's impressive.

oliviertassinari avatar Apr 12 '17 16:04 oliviertassinari

same here on linux, unusable!

SDAdham avatar Jul 10 '22 11:07 SDAdham