"Container.HasParent" reading is slow...
#1
Hello,

I'm developing a Addon which gets information about the current Kodi status using info labels and boolean conditions to display them to a graphical LCD:

https://github.com/M-Reimer/script.service.graphlcd

So far I've always been happy about the display update speed. But a few days ago, I noticed, that the LCD gets updated much slower if I'm browsing a music album.

So today I've tried to track this down to some reason and what I found is, that reading of the boolean condition "Container.HasParent" seems to be *much* slower if a music album is displayed.

Regular speed is around 0.005 seconds.

If I'm in a music album list, this speed to around 0.04 seconds. Meaning around 10 times slower inside music album lists.

Why is this boolean condition so much smaller in music title lists?

I'm thinking of caching this value. Can I use the "Container.FolderPath" info label as some "unique index" for my cache list?
Reply

Logout Mark Read Team Forum Stats Members Help
"Container.HasParent" reading is slow...0