Open GameBakerStudio opened 1 month ago
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 opt-level = 1
is enough to make to duration acceptable in debug mode.
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
opt-level = 1
is enough to make to duration acceptable in debug mode.
@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 opt-level
?
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
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.