containerd/runtime
Danny Canter f5211ee3fc Change to Readdirnames for some cases
There was a couple uses of Readdir/ReadDir here where the only thing the return
value was used for was the Name of the entry. This is exactly what Readdirnames
returns, so we can avoid the overhead of making/returning a bunch of interfaces
and calling lstat everytime in the case of Readdir(-1).

https://cs.opensource.google/go/go/+/refs/tags/go1.20.4:src/os/dir_unix.go;l=114-137

Signed-off-by: Danny Canter <danny@dcantah.dev>
2023-05-08 00:41:13 -07:00
..
opts Use github.com/containerd/cgroups/v3 to remove gogo 2022-11-14 21:07:48 +00:00
restart Merge pull request #7951 from Iceber/fix_restart_monitor 2023-03-16 08:58:20 +08:00
v2 Change to Readdirnames for some cases 2023-05-08 00:41:13 -07:00
events.go Licence header added 2018-02-19 10:32:26 +09:00
monitor.go Add runtime label to metrics 2021-07-23 10:04:46 -07:00
nsmap.go Make TaskList generic 2022-08-10 14:02:53 -07:00
runtime.go go.mod: github.com/containerd/typeurl/v2 v2.1.0 2023-02-11 23:39:52 +09:00
task.go Consolidate gogo/protobuf dependencies under our own protobuf package 2022-04-19 15:53:36 +00:00
typeurl.go go.mod: github.com/containerd/typeurl/v2 v2.1.0 2023-02-11 23:39:52 +09:00