Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance Issue #3

Open
anelad opened this issue Apr 16, 2024 · 2 comments
Open

Performance Issue #3

anelad opened this issue Apr 16, 2024 · 2 comments

Comments

@anelad
Copy link

anelad commented Apr 16, 2024

Hi. First of all, thanks for your contribution to the open source family 馃

The package is very useful for small playlists but for large ones; I cannot say the same for the playlist I have.

It consists of 194.918 (EXTINF, URI) pairs and single EXTM3U entry with 22,1 MB in size.

Decoding it takes around 5.5 minutes with your package while VLC Player decodes in ~2 minutes. But the blowminding thing is a snippet from this medium post decodes the same playlist instantly (1.3 seconds). Of course the snippet does nothing but parsing it, no custom tags or any other features but instant vs 5.5 minutes is something very serious.

I think you should re-think about how you construct things.

Good luck 鉁岋笍

@ikhvorost
Copy link
Owner

Hi @anelad!

Thanks for your notice about the performance issues. Could you provide a link to your large m3u8 file to test and compare with other parsers?

@anelad
Copy link
Author

anelad commented May 7, 2024

Here is the file I have

Of course I had to change the url, username and password so links are dead.

If you are on a Mac, OS won't open the file since it's origin is not known. You can "open anyway" from Settings -> Privacy & Security. I don't know about Windows or Linux distributions though.

Good luck!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants