Optimize ResourceList.Find to use map instead of list #8988
Labels
Area: Translation
no stalebot
This issue won't be closed by stalebot even after inactivity.
release/1.17
Type: Enhancement
New feature or request
Gloo Edge Product
Open Source
Gloo Edge Version
1.17
Is your feature request related to a problem? Please describe.
When the scale of resources that are being managed by the Control-Plane grows, the performance of the translation loop degrades. One way to handle a higher cardinality of resources, is by relying on lists of resources which are indexed once at the beginning of the translation loop.
At the moment, you can see https://github.com/solo-io/gloo/blob/main/projects/gloo/pkg/api/v1/upstream.sk.go#L71 as an example: we iterate over the resources each time we need to
Find
an element.Describe the solution you'd like
Describe alternatives you've considered
No response
Additional Context
Identical request to: solo-io/solo-kit#521
The text was updated successfully, but these errors were encountered: