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

Improve callResourceUri caching #578

Open
tomasg2012 opened this issue Mar 8, 2024 · 0 comments
Open

Improve callResourceUri caching #578

tomasg2012 opened this issue Mar 8, 2024 · 0 comments

Comments

@tomasg2012
Copy link
Contributor

tomasg2012 commented Mar 8, 2024

Current caching relies on python's built in lru_cache function. When URIs contain fragments (i.e. /redfish/v1/.../Thermal#/Fans/1), it will call the resource /redfish/v1/.../Thermal for each link in a Collection, when once would be satisfactory. Fix could use a wrapper that strips the fragment, then cache that URI.

Consider adding an option for cache size and how much memory it consumes while running the tool on big services.

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

1 participant