Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Help me understand this performance issue with YoutubeDL.py? #25444
Comments
|
It's a reasonable time since this involves extracting all individual videos including downloading webpages and data needed for individual video extraction. |
|
Thanks for the evaluation. With that info I could determine that my use case requires |
Checklist
Question
Background: I'm trying to understand the source of a performance issue in a Kodi addon that calls YoutubeDL.py (2020.05.08). It currently takes about 55 seconds to parse a Youtube playlist with 29 entries, on a Raspberry Pi 3B (running OSMC).
I profiled the addon with cProfile, and found out that 52 of 55 seconds were spent in
YoutubeDL.py:771(extract_info). I then narrowed down the profiling to only that function call, with this result (sorted by time spent in itself and subfunctions):I'm working under the assumption that 56 seconds for
YoutubeDL.py:771(extract_info)is unreasonably long.I'm wondering if there is an obvious cause for this performance, or if someone could point me in the right direction toward figuring it out?
A simplified example of what the call looks like:
I'm hoping to make this an order of magnitude faster somehow.