[linux-audio-dev] python and jack, performance report

Leonard "paniq" Ritter paniq at paniq.org
Sun Dec 11 15:32:21 UTC 2005


frustrated by the poor implementation of the jack bindings for python
(pyjack), i wrote my own in native python using ctypes.

the first test client mixed a 440hz sine wave using native python lists,
and the cpu usage was about ~11%.

i reimplemented the sine generator with numerics, and got it down to
~2%.

i believe that considering the overhead of the python implementation,
that result isn't too bad, and maybe allows for more than just
prototyping.

i attached the jack wrapper with the test client contained for those who
are interested. its not entirely wrapped and lacks some functionality.

-- 
-- leonard "paniq" ritter
-- http://www.mjoo.org
-- http://www.paniq.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: jack.py
Type: text/x-python
Size: 8405 bytes
Desc: not available
URL: <http://lists.linuxaudio.org/pipermail/linux-audio-dev/attachments/20051211/1856f20c/attachment.py>


More information about the Linux-audio-dev mailing list