Re: [yoshimi-user] Some optimization patches for Yoshimi

  • From: Will J Godfrey <WillGodfrey@xxxxxxxxxxxxxxx>
  • To: yoshimi-user@xxxxxxxxxxxxxxxxxxxxx
  • Date: Fri, 12 Oct 2012 22:18:49 +0100

On Fri, 12 Oct 2012 13:27:03 +0200
Jeremy Jongepier <jeremy@xxxxxxxxxxxxxx> wrote:

On 10/06/2012 12:10 PM, Kristian Amlie wrote:
I made some optimizations to Yoshimi to improve its CPU usage, which
resulted in two patches. Especially the second patch gives a large
improvement on CPU usage when Yoshimi is idle; on my system it drops
from 13% to 3%. Both patches are pretty straightforward, and I have been
using them for several hours without running into any issues.

If someone on the list wants to test them, maybe we could apply them to
the next version of Yoshimi. The patches are based on the 1.0 branch.


Patches have been applied to the 1.0 branch.

git clone git://yoshimi.git.sourceforge.net/gitroot/yoshimi/yoshimi
cd yoshimi
git checkout 1.0

Then compile and test :)
And no, I have not a single idea how git-am works so I just used patch
;) I'll do better next time.

Best,

Jeremy

Managed to find time to do some tests today :)

Running on a 64bit dual core Athlon

First, using patch Hyper matrix, and playing quite fast *chords* from a MIDI
keyboard direct into yoshimi - old version gives xruns all over the place, new
version just a few here and there.

Second, playing my Ghost Train file from Rosegarden, towards the end where
there are 9 quite complex tracks playing together - old version peaks a 50%
CPU, new version peaks at 41% CPU (no xruns from either version).

If I have time, I'll do some more checking over the weekend, and also see how
it behaves on my single core 32bit office machine.

--
Will J Godfrey
http://www.musically.me.uk
Say you have a poem and I have a tune.
Exchange them and we can both have a poem, a tune, and a song.


Other related posts: