Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-24 02:36:10 +01:00
forgejo/modules/log
Felipe Leopoldo Sologuren Gutiérrez 04c97aa364
Change use of Walk to WalkDir to improve disk performance (#22462)
As suggest by Go developers, use `filepath.WalkDir` instead of
`filepath.Walk` because [*Walk is less efficient than WalkDir,
introduced in Go 1.16, which avoids calling `os.Lstat` on every file or
directory visited](https://pkg.go.dev/path/filepath#Walk).

This proposition address that, in a similar way as
https://github.com/go-gitea/gitea/pull/22392 did.


Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2023-01-16 16:21:44 +00:00
..
buffer.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
buffer_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
colors.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
colors_router.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
conn.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
conn_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
console.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
console_other.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
console_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
console_windows.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
errors.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
event.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
file.go Change use of Walk to WalkDir to improve disk performance (#22462) 2023-01-16 16:21:44 +00:00
file_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
flags.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
groutinelabel.go Update go dev dependencies (#22064) 2022-12-08 16:21:37 +08:00
groutinelabel_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
level.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
level_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
log.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
log_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
logger.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
multichannel.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
provider.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
smtp.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
smtp_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
stack.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
writer.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
writer_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00