|
From: | Hamish Moffatt |
Subject: | Re: [fluid-dev] parallel loading of soundfont samples |
Date: | Wed, 28 Oct 2020 09:39:23 +1100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |