feat(fs): optimize scanning performance by direct file access for known paths (#8525)

This commit is contained in:
Teppei Fukuda
2025-03-13 08:29:42 +04:00
committed by GitHub
parent 8112cdf8d6
commit 8bf6caf98e
26 changed files with 334 additions and 28 deletions

View File

@@ -4,7 +4,9 @@ import "golang.org/x/sync/semaphore"
const defaultSize = 5
func New(parallel int) *semaphore.Weighted {
type Weighted = semaphore.Weighted
func New(parallel int) *Weighted {
if parallel == 0 {
parallel = defaultSize
}