Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cache performance issues #21

Open
rickybiscus opened this issue May 25, 2021 · 1 comment
Open

cache performance issues #21

rickybiscus opened this issue May 25, 2021 · 1 comment

Comments

@rickybiscus
Copy link

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 rickybiscus/plugin.video.auvio#22

Thanks !

@vlmaksime
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants