feat: limit concurrent open files during scatter #6
Reference in New Issue
Block a user
Delete Branch "push-rkytvkympxrn"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Introduces a
max_open_filesCLI argument (default: 20) to cap concurrently open input files during scatter operations. The scatter phase now parallelizes sequence file partitioning across worker threads while enforcing a configurable concurrency limit using a custom semaphore andGuardedIterwrapper. This ensures bounded resource usage and prevents file handle exhaustion during index construction.