Window Property Performance - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26) +--- Thread: Window Property Performance (/showthread.php?tid=346781) |
Window Property Performance - Sceet - 2019-08-30 Hello I have several questions about the performance with Window Propertys
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 RE: Window Property Performance - doko-desuka - 2019-08-30 I think this is the implementation, it uses a std::map: - https://github.com/xbmc/xbmc/blob/Krypton/xbmc/guilib/GUIWindow.h#L286 (.h) - https://github.com/xbmc/xbmc/blob/Krypton/xbmc/guilib/GUIWindow.cpp#L1040-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. RE: Window Property Performance - Sceet - 2019-08-30 (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 ? |