Closed jonathan-innis closed 1 week ago
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: jonathan-innis, njtran
The full list of commands accepted by this bot can be found here.
The pull request process is described here
Fixes #N/A
Description
Don't reparse the selector on the TopologyGroup each time we validate whether a pod matches a selector. The call to
metav1.LabelSelectorAsSelector
causes a regex parse of the selector which is expensive to compute during the scheduling loopFlame Graph
How was this change tested?
make presubmit
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.