Skip to content

Commit

Permalink
set concurrency to 50
Browse files Browse the repository at this point in the history
Signed-off-by: xixi <[email protected]>
  • Loading branch information
Hexilee committed Mar 16, 2023
1 parent 4684594 commit 2168110
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/meta/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ func GetSummary(r Meta, ctx Context, inode Ino, summary *Summary, recursive bool
summary.Dirs++
summary.Size += uint64(align4K(0))

const concurrency = 1000
const concurrency = 50
dirs := []Ino{inode}
for len(dirs) > 0 {
entriesList := make([][]*Entry, len(dirs))
Expand Down Expand Up @@ -408,7 +408,7 @@ func FastGetSummary(r Meta, ctx Context, inode Ino, summary *Summary, recursive
}
summary.Dirs++

const concurrency = 1000
const concurrency = 50
dirs := []Ino{inode}
for len(dirs) > 0 {
entriesList := make([][]*Entry, len(dirs))
Expand Down

0 comments on commit 2168110

Please sign in to comment.