xiph / opus

Modern audio compression for the internet.
https://opus-codec.org/
Other
2.27k stars 603 forks source link

How to improve the compression speed of opus on STM32? #258

Open tsk15535904190 opened 2 years ago

tsk15535904190 commented 2 years ago

Thanks for the open source! I tried to use the OPUS compression algorithm on STM32L476@80Mhz, compressing 12K, 40ms, 480 data, -Of optimization, complexity 1, it took 25ms, and then defined OPUS_ARM_ASM, OPUS_ARM_INLINE_ASM two definitions, but the speed did not improve, there is Any other way to increase the speed? Thank you

tswan-quasi commented 1 year ago

you could try reducing the compression complexity at the cost of quality using opus_encoder_ctl() with OPUS_SET_COMPLEXITY()

You could also check to see if flash prefetch and the I/D caches are enabled on your STM32L476 and if those improve your performance