johnnydep icon indicating copy to clipboard operation
johnnydep copied to clipboard

It works very long

Open prshir opened this issue 1 year ago • 6 comments

Hello! I use the johnnydep lib for build dependencies graph. It took 1.5 hours to build dependencies of pysal lib. I run it from cmd, the command is johnnydep.exe pysal Is it reasonable to work for so long?

prshir avatar Jun 15 '23 11:06 prshir

The johnnydep version is 1.20.2, the internet speed is quite high

prshir avatar Jun 16 '23 05:06 prshir

Can not reproduce. For me this tree rendered in 2 and a half minutes:

$ johnnydep pysal

That's not fast, and there is definitely room for improvement, but nothing like 1.5 hours! Since you're on Windows platform perhaps some of the dependencies in this tree did not have .whl available on PyPI and so they had to be compiled from sdist, that could explain such a long runtime.

wimglenn avatar Jun 16 '23 14:06 wimglenn

I'm having the same problem on both ubuntu and mac. We use johnnydep as part of our opensource tool and all my workflows are timing out.

aylusltd avatar May 30 '24 16:05 aylusltd

This guy now takes 1+hr per run on a clean vm: https://github.com/StartupOS/verinfast/blob/main/src/verinfast/dependencies/walkers/python.py

aylusltd avatar May 30 '24 16:05 aylusltd

v2.0.0 will be significantly faster (coming soon)

wimglenn avatar May 30 '24 17:05 wimglenn

Anything I can do to help? Happy to cut PRs/close issues if there's anything useful I can contribute.

aylusltd avatar May 30 '24 18:05 aylusltd