2015-01-25, 20:08
The next update v5.0.5~beta3 has some minor (internal) changes. I dropped the dependency for the requests module because it's slowing down the addon. I was searching for nearly a month to find the bottleneck and finally found it
The import of the requests module is slowing things down. On my developer machine nearly a second for each call (each import). On my HTPC it was even worth -> 2-4 seconds!
For more information see the following links:
"import requests" is very slow on python2...
"import OpenSSL" is 150x slower in 0.14
The bug is maybe solved in python 2.7.9 - but this doesn't help, because XBMC/KODI is running 2.7.8 on Windows, 2.7.3 on Linux systems and some other posix systems even 2.6
So I wrote my own 'requests' clone so I can switch back and forth and don't have to change the API of the addon at all. The difference is on my systems more then noticeable. I hope all encodings and GET, POST, PUT and DELETE methods are working (so far tests with 4 other addons were successfully).
The import of the requests module is slowing things down. On my developer machine nearly a second for each call (each import). On my HTPC it was even worth -> 2-4 seconds!
For more information see the following links:
"import requests" is very slow on python2...
"import OpenSSL" is 150x slower in 0.14
The bug is maybe solved in python 2.7.9 - but this doesn't help, because XBMC/KODI is running 2.7.8 on Windows, 2.7.3 on Linux systems and some other posix systems even 2.6
So I wrote my own 'requests' clone so I can switch back and forth and don't have to change the API of the addon at all. The difference is on my systems more then noticeable. I hope all encodings and GET, POST, PUT and DELETE methods are working (so far tests with 4 other addons were successfully).