gloo
gloo copied to clipboard
kubernetes: Optimize computing gloo endpoints
Description
Optimize computing gloo endpoints by using resource sets to efficiently find resources.
Code changes
Use resourceSets instead of lists find and iterate over lists of resources Since a lot of the iteration involves iterating over a list to find a NamespacedName resource, opted to use the ResourceSet to efficiently find the resource to avoid unnecessarily iterating over the same list multiple times
Context
This is a simple optimization to reduce CPU utilization https://github.com/solo-io/solo-projects/issues/7369
Issues linked to changelog: https://github.com/solo-io/solo-projects/issues/7369
Visit the preview URL for this PR (updated for commit 3695c29):
https://gloo-edge--pr10478-optimize-compute-glo-8gknko0g.web.app
(expires Wed, 29 Oct 2025 16:00:46 GMT)
🔥 via Firebase Hosting GitHub Action 🌎
Sign: 77c2b86e287749579b7ff9cadb81e099042ef677