forked from kubernetes/kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request kubernetes#34948 from wojtek-t/avoid_unnecessary_a…
…llocation Automatic merge from submit-queue Avoid unnecessary allocation This is supposed to avoid unnecessary memory allocations. PodToSelectableFields seems to be the biggest contributor to memory allocations: ``` Showing top 10 nodes out of 247 (cum >= 83166442) flat flat% sum% cum cum% 1796823715 31.09% 31.09% 1796823715 31.09% k8s.io/kubernetes/pkg/registry/core/pod.PodToSelectableFields 530856268 9.19% 40.28% 530856268 9.19% k8s.io/kubernetes/pkg/storage.NamespaceKeyFunc 241505351 4.18% 44.46% 241505351 4.18% reflect.unsafe_New ... ```
- Loading branch information
Showing
2 changed files
with
19 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters