Window Property Performance
#1
Question 
Hello
I have several questions about the performance with Window Propertys

python:

window = xbmcgui.Window(10000)
window.setProperty("Property", "Value")

Lets say i will set 100000 Propertys on the Home (10000) Window
- how does this affect the performance of the skin or the addon(s)
- how are Propertys Stored ? in a c++ map ?
- how does the skin read/get the Propertys in the infolabels?

best regards
Reply
#2
I think this is the implementation, it uses a std::map:
- https://github.com/xbmc/xbmc/blob/Krypto...dow.h#L286 (.h)
- https://github.com/xbmc/xbmc/blob/Krypto...1040-L1054 (.cpp)

If you're going to use this with a Python plugin, I suggest storing a single huge string instead of several small ones. Serialize a Python object with the 'json' module and store that.
Reply
#3
(2019-08-30, 16:37)doko-desuka Wrote: I suggest storing a single huge string instead of several small ones. Serialize a Python object with the 'json' module and store that.

jea sure i have an big dictionary/json object that i store in a json file and read on startup and set the propertys
so u think its not a problem with many propertys ?
Reply

Logout Mark Read Team Forum Stats Members Help
Window Property Performance0