(2014-10-19, 15:24)GreenAir Wrote: I don't know if i'm allowed to talk about it because it is for streaming movies and TV-shows.
It is legal here in Switzerland but I'm not familiar with the guidelines here in the forum.
Perhaps you can find a legitimate add-on (from xbmc's repo) that behaves the same way, and then any code changes can be discussed more freely here.
Obviously once the best solution for the legitate add-on is found you can apply the same technique to other add-ons.
It's worth being aware that imported python source files (.py) are compiled into byte code (.pyc or .pyo) when first run.
Subsequent runs will be quicker than the first run as this set is already done.
*However* the top level python file (default.py, services.py etc) is recompiled to byte code every time.
Only imported files get saved as byte code.
This means an add-on that has a lot of code in default.py will be slow to launch every time.
If default.py just imports another module that contains the same code, then it will load quicker (by utilising the .pyc/.pyo file).