http://pypy.org/ has a really big performance boost in a lot of scenarios.
I was trying to give it a try for mopidy (specially for mopidy-youtube in a raspberry pi…) but it seems there might be a few blockers, module “gi” for starters…
Re-creating is as easy as (in Raspbian though Debian or Ubuntu should be the same):
apt-get install pypy
easy_install virtualenv
virtualenv -p /usr/bin/pypy testenv
. testenv
pip install mopidy-youtube (this also installs mopidy as dependency)
Now I try to execute it (re-using the files installed by the apt package in mopidy official repository):
~# mopidy --config /usr/share/mopidy/conf.d:/etc/mopidy/mopidy.conf
ERROR: A GObject Python package was not found.
Mopidy requires GStreamer to work. GStreamer is a C library with a
number of dependencies itself, and cannot be installed with the regular
Python tools like pip.
Please see http://docs.mopidy.com/en/latest/installation/ for
instructions on how to install the required dependencies.
Traceback (most recent call last):
File "/root/test/bin/mopidy", line 7, in <module>
from mopidy.__main__ import main
File "/root/test/site-packages/mopidy/__main__.py", line 8, in <module>
from mopidy.internal.gi import Gst # noqa: F401
File "/root/test/site-packages/mopidy/internal/gi.py", line 8, in <module>
import gi
ImportError: No module named gi
Though I can’t find any package pypy-gi in apt repositories nor any way to get it for pypy (beside package “pgi” which seems to replace “gi”).
It could be that pypy would be a good mopidy boost!