|
From: | Philippe Simons |
Subject: | Re: [fluid-dev] Adding C++ as mandatory dependency? |
Date: | Wed, 22 Jan 2020 09:44:15 +0100 |
Carlo, the reason I would like to use C++ is that I want to maximize
the performance of fluidsynth. Particularly, the sequencers event
queue, which currently blocks rendering for several seconds when
processing a few ten-thousand events (taken from highly polyphonic,
automated MIDI files). See this mail for some real measurements:
https://lists.nongnu.org/archive/html/fluid-dev/2019-12/msg00003.html
The performance gain is achieved by using heap sort and std::deque for
fast appending of new elements (i.e. events). Which is exactly the
need provided by C++.
So, I'm sorry, but your argument does not convince me.
And, unlike the Linux Kernel, we cannot afford (re-)implementing and
maintaining our own sorting algorithms in C:
https://github.com/torvalds/linux/blob/master/lib/sort.c
The alternative to C++ as I learned recently, would be to use GQueue,
provided by gmodule. This does not provide heap sort and (according to
the documentation) is not as smart as std::deque. And it would tighten
the glib dependency even more. All in all, this makes it a worse
solution IMO.
Tom
_______________________________________________
fluid-dev mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/fluid-dev
[Prev in Thread] | Current Thread | [Next in Thread] |