JuanBindez / pytubefix

Python3 library for downloading YouTube Videos.
https://pytubefix.readthedocs.io
MIT License
722 stars 100 forks source link

Rapidly growing CPU workload for newer versions of Pytubefix #320

Closed NannoSilver closed 1 week ago

NannoSilver commented 1 week ago

I am running pytubefix in a very small VPS where I can monitor the performance.

Running pytubefix 8.1.1 there is a relevant increase in CPU usage, more than twice the average CPU requirements for pytubefix 7.3.1 for the same tasks, that is essentially download audio files (itag = 140) and download of very few information for the videos.

Here is a graphic showing the CPU workload running pytubefix 8.1.1 and, then, after the downgrade to 7.3.1:

performance issues

Maybe somebody else detected the same issue. I am not sure if there is anything that can be done, anyway I am reporting.