script.module.simpleplugin icon indicating copy to clipboard operation
script.module.simpleplugin copied to clipboard

cache performance issues

Open rickybiscus opened this issue 3 years ago • 1 comments

Some users do report a cache performance issue with your plugin.

It seems that it is not correctly cleared when it is expired; is that a known issue ? See https://github.com/rickybiscus/plugin.video.auvio/issues/22

Thanks !

rickybiscus avatar May 25 '21 08:05 rickybiscus

I suspect that the problem is in speed of reading the file from disk/flash. With each call of the function, the file is read from disk/flash and then the cached data is searched in the readed data. Try using mem_cached decorator instead of the cached decorator. It saves data to the Kodi memory and access to this information will be faster.

vlmaksime avatar Jun 02 '21 21:06 vlmaksime