eaa9494b71
Use File.Readdirnames instead of os.ReadDir, as we're only interested in the number of files, and results don't have to be sorted. Before: BenchmarkGetTotalUsedFds-5 149272 7896 ns/op 945 B/op 20 allocs/op After: BenchmarkGetTotalUsedFds-5 153517 7644 ns/op 408 B/op 10 allocs/op Signed-off-by: Sebastiaan van Stijn <github@gone.nl> |
||
---|---|---|
.. | ||
fileutils.go | ||
fileutils_darwin.go | ||
fileutils_linux.go | ||
fileutils_test.go | ||
fileutils_windows.go |