An idea to parallelize loading would be to use openMP Tasks. I've made a quick'n dirty implementation of that:
https://github.com/FluidSynth/fluidsynth/tree/parallelize-sf3-loading Currently, there are two problems: 1. The samplecache is guarded by a mutex that prevents naïve parallelization. 2. If we relax that mutex we get a strange race condition, resulting in various failed sample decodings. Tom _______________________________________________ fluid-dev mailing list fluid-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/fluid-dev