mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-10 17:35:44 -04:00
`filepath.Walk` recursively traverses every dir, which is not what is needed for getPids. Instead only read the list of dirs in the top level of `/proc`. ``` benchmark old ns/op new ns/op delta BenchmarkGetPids-4 868684 195522 -77.49% ``` |
||
|---|---|---|
| .. | ||
| BUILD | ||
| doc.go | ||
| example_proc_cgroup | ||
| procfs.go | ||
| procfs_fake.go | ||
| procfs_linux.go | ||
| procfs_linux_test.go | ||
| procfs_unsupported.go | ||