stmcginnis / gofish

Gofish is a Golang client library for DMTF Redfish and SNIA Swordfish interaction.
BSD 3-Clause "New" or "Revised" License
213 stars 112 forks source link

Add common concurrent function to get list of objects #354

Closed stmcginnis closed 3 months ago

stmcginnis commented 3 months ago

We have concurrency when getting a collection that contains a set of links to objects. But some object properties are a list themselves and not a Collection object. This adds a common function to be used for these types of properties to take advantage of the concurrent processing to fetch these objects from the system.

stmcginnis commented 3 months ago

As an accedotal data point, I have something that collects a lot of different information from a system. Prior to this change it usually took 20-30 seconds to complete. After these changes it appears to take a little under 9 seconds.