Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getPids - don't recursively traverse every dir in /proc #66367

Merged
merged 1 commit into from
Oct 29, 2018

Commits on Jul 19, 2018

  1. getPids - don't recursively traverse every dir

    `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%
    ```
    cpuguy83 committed Jul 19, 2018
    Configuration menu
    Copy the full SHA
    01034af View commit details
    Browse the repository at this point in the history