Skip to content

Commit ea2ad77

Browse files
round 3
1 parent d51d8d7 commit ea2ad77

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rounds/3_dna/solution.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def find_matches(fasta_path: str, pattern: bytes) -> list[tuple[str, list[int]]]
4141
records = [record for record in text.split(">") if record.strip()]
4242
matches: list[tuple[str, list[int]]] = []
4343

44-
with ThreadPoolExecutor(max_workers=16) as executor:
44+
with ThreadPoolExecutor(max_workers=4) as executor:
4545
for result in executor.map(_process_record, records, repeat(pattern_str)):
4646
if result:
4747
matches.append(result)

0 commit comments

Comments
 (0)