ec79d0fc05
Linux 6.2 and up (commit [f1f1f2569901ec5b9d425f2e91c09a0e320768f3][1])
provides a fast path for the number of open files for the process.
From the [Linux docs][2]:
> The number of open files for the process is stored in 'size' member of
> `stat()` output for /proc/<pid>/fd for fast access.
[1]:
|
||
---|---|---|
.. | ||
fileutils.go | ||
fileutils_darwin.go | ||
fileutils_linux.go | ||
fileutils_test.go | ||
fileutils_windows.go |