-
Notifications
You must be signed in to change notification settings - Fork 144
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Symphonia MP3 decoding has been very slow. #308
Comments
Running the code makes it go from 15s to 300ms for me (which is arguably still a lot), this is probably what you are missing here. Even |
@a1phyr It seems you found a solution for this? I don't know what you mean by "running the code", as thats.. what I've been doing? The 15 (13-17) seconds is the time it takes in debug mode (my current only option). What is |
Whoops sorry I forgot some words, I meant "Running the code in release mode". If you don't want to use release mode but still acceptable performance, you can change the optimization level by adding this to your ̀Cargo.toml` [profile.dev]
opt-level = 1 |
i dont know how much it would affect it for your use-case, but you could:
(at least those are the things we do in our implementation for symphonia decoding) |
While I don't believe this is an issue related directly to the software of Symphonia, I think this issue will still apply here. (I also can't post on StackOverflow so please).
I attempted to use Symphonia to decode MP3 files in my application. I got it to work "following" the example documentation, but it's taking a very long time. 17 seconds is the minimum amount of time I can find to decode files of even very small duration (1-2 minutes). I tried using Rayon; got it down to 3 seconds, but apparently MP3 must be sequentially processed? I guess I am asking if anyone can help me get this time down? I don't expect it to be instantaneous, but I didn't expect it to take 15-17 seconds.
Here's my code. (All parameters and external software are working correctly/valid)
Sorry code isn't documented :( I'm new to this.
The text was updated successfully, but these errors were encountered: