apiserver/pkg/authentication/serviceaccount
Clayton Coleman 49ac3bd853 Avoid allocating when performing VisitRulesFor on service accounts
Service account authorization checks are done frequently and were
observed to perform 7% of allocations on a system running e2e tests.
The allocation comes from when we walk the authorization rules to
find matching service accounts.

Optimize the check for service account names to avoid allocating.

Kubernetes-commit: 4c87a14e6b1809359fcb6566d883a169ff0db259
2019-03-11 11:50:44 -04:00
..
util.go Avoid allocating when performing VisitRulesFor on service accounts 2019-03-11 11:50:44 -04:00
util_test.go Avoid allocating when performing VisitRulesFor on service accounts 2019-03-11 11:50:44 -04:00