Redfish-Service-Validator icon indicating copy to clipboard operation
Redfish-Service-Validator copied to clipboard

Improve callResourceUri caching

Open tomasg2012 opened this issue 1 year ago • 0 comments

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.

tomasg2012 avatar Mar 08 '24 16:03 tomasg2012