Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a getpid benchmark and have ProcessId::current use get_cached_pid…
… on unix Summary: getpid() is an unconditional syscall on Linux/glibc. Therefore, it costs about 250 nanoseconds. There are a couple places in EdenFS where getpid() is an inner-ish loop so use folly::get_cached_pid() instead. Reviewed By: kmancini Differential Revision: D42044221 fbshipit-source-id: e9c8f8a00febeaf6c9a0a3481879040d739038f5
- Loading branch information