mirror of
https://github.com/tw93/Mole.git
synced 2026-02-16 23:24:11 +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
|
cacheModTimeGrace = 30 * time.Minute // Ignore minor directory mtime bumps
|
||||||
|
|
||||||
// Worker pool configuration
|
// Worker pool configuration
|
||||||
minWorkers = 32 // Minimum workers for better I/O throughput
|
minWorkers = 8 // Minimum workers for better I/O throughput
|
||||||
maxWorkers = 256 // Maximum workers to avoid excessive goroutines
|
maxWorkers = 64 // Maximum workers to avoid excessive goroutines
|
||||||
cpuMultiplier = 8 // Worker multiplier per CPU core for I/O-bound operations
|
cpuMultiplier = 2 // Worker multiplier per CPU core for I/O-bound operations
|
||||||
maxDirWorkers = 64 // Maximum concurrent subdirectory scans
|
maxDirWorkers = 16 // Maximum concurrent subdirectory scans
|
||||||
openCommandTimeout = 10 * time.Second // Timeout for open/reveal commands
|
openCommandTimeout = 10 * time.Second // Timeout for open/reveal commands
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user