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:
BIN
bin/analyze-go
BIN
bin/analyze-go
Binary file not shown.
@@ -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
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user