1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-05 10:18:48 +00:00

Fix the problem that scanning

multithreading is too radical
This commit is contained in:
Tw93
2025-11-23 20:19:08 +08:00
parent c3815309cc
commit afb5e94e74
2 changed files with 4 additions and 4 deletions

Binary file not shown.

View File

@@ -18,10 +18,10 @@ const (
cacheModTimeGrace = 30 * time.Minute // Ignore minor directory mtime bumps
// Worker pool configuration
minWorkers = 32 // Minimum workers for better I/O throughput
maxWorkers = 256 // Maximum workers to avoid excessive goroutines
cpuMultiplier = 8 // Worker multiplier per CPU core for I/O-bound operations
maxDirWorkers = 64 // Maximum concurrent subdirectory scans
minWorkers = 8 // Minimum workers for better I/O throughput
maxWorkers = 64 // Maximum workers to avoid excessive goroutines
cpuMultiplier = 2 // Worker multiplier per CPU core for I/O-bound operations
maxDirWorkers = 16 // Maximum concurrent subdirectory scans
openCommandTimeout = 10 * time.Second // Timeout for open/reveal commands
)