On 28/10/20 2:53 am, Ceresa Jean-Jacques wrote:

Hi,

>I did look through the sfloader code and I can see it's not easy to restructure it to use multiple threads.

>Still, I think parallel loading of the soundfonts would be a good
optimization that would benefit every application using Fluidsynth.

Before doing any attempt to restructure it to use multiple threads, may I suggest you doing a simple test to check where is the bottleneck ?.

- 1) doesn't the bottleneck is in SF3 time decoding ?.

- 2) doesn't the bottleneck is in disk file reading ?.


I have two soundfonts, FluidR3_Mono.sf2 (99Mb) / sf3 (13Mb), and piano.sf2 (238Mb) / sf3 (22Mb).

The SF3 files are taking ~5 seconds each to load. The SF2 files take 400-500ms, despite being 7-10x the size, so the bottleneck is not disk I/O.


Unfortunately my debugger/profile (Visual Studio) isn't seeing symbols inside my fluidsynth.dll in order for me to profile it right now.


Hamish


_______________________________________________
fluid-dev mailing list
fluid-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/fluid-dev

Reply via email to