containerd/content/local
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
..
content_local_fuzzer.go chore: use go fix to cleanup old +build buildtag 2022-12-29 14:25:14 +08:00
locks_test.go Use testify 2022-04-01 18:17:58 -07:00
locks.go feat: replace github.com/pkg/errors to errors 2022-01-07 10:27:03 +08:00
readerat.go Add reader option to local content reader at 2022-09-20 20:50:04 -07:00
store_bsd.go chore: use go fix to cleanup old +build buildtag 2022-12-29 14:25:14 +08:00
store_openbsd.go chore: use go fix to cleanup old +build buildtag 2022-12-29 14:25:14 +08:00
store_test.go Stop using math/rand.Read and rand.Seed (deprecated in Go 1.20) 2023-02-16 03:50:23 +09:00
store_unix.go chore: use go fix to cleanup old +build buildtag 2022-12-29 14:25:14 +08:00
store_windows.go Licence header added 2018-02-19 10:32:26 +09:00
store.go Change to Readdirnames for some cases 2023-05-08 00:41:13 -07:00
test_helper.go Copy fuzzers from github.com/cncf/cncf-fuzzing 2022-07-06 15:21:48 +00:00
writer.go Fix incorrect error wrapped when closing ingest file 2022-01-07 12:23:18 -08:00