jendrikseipp / vulture

Find dead Python code
MIT License
3.29k stars 145 forks source link

Multiprocessing vulture with python. #330

Open pernordeman123 opened 9 months ago

pernordeman123 commented 9 months ago

Hi!

Is it possible to run vulture with multiprocessing? if so do you have any recommendation on how to do it?

Trying the split the files in different processes/threads will break the tool, so it would be cool if its possible to share/split the AST between processes. I'm using pythons threading and queue libs.

BR Per

jendrikseipp commented 9 months ago

Vulture currently doesn't support parallel processing. And I feel that if it's slow enough to make somebody wish for parallel processing, we should be making its single-core execution faster first. Is the code you're testing open source and can you share a link and how you call Vulture? How ling does running Vulture on your code take?