You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/modules/repository
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>
1 year ago
..
collaborator.go Always reuse transaction (#22362) 2 years ago
collaborator_test.go Rename almost all Ctx functions (#22071) 2 years ago
commits.go Implement FSFE REUSE for golang files (#21840) 2 years ago
commits_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
create.go Fix error when calculate the repository size (#22392) 1 year ago
create_test.go Fix error when calculate the repository size (#22392) 1 year ago
delete.go Implement FSFE REUSE for golang files (#21840) 2 years ago
env.go Implement FSFE REUSE for golang files (#21840) 2 years ago
fork.go Implement FSFE REUSE for golang files (#21840) 2 years ago
generate.go Change use of Walk to WalkDir to improve disk performance (#22462) 1 year ago
generate_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
hooks.go Implement FSFE REUSE for golang files (#21840) 2 years ago
init.go Improve utils of slices (#22379) 1 year ago
main_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
push.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo.go Use context parameter in models/git (#22367) 2 years ago
temp.go Implement FSFE REUSE for golang files (#21840) 2 years ago