Accelerate the speed of very long fasta sequences, and more generaly of every format

This commit is contained in:
Eric Coissac
2025-03-12 13:29:41 +01:00
parent 83926c91e1
commit 3a1cf4fe97
8 changed files with 185 additions and 54 deletions

View File

@@ -233,13 +233,12 @@ func ReadFasta(reader io.Reader, options ...WithOption) (obiiter.IBioSequence, e
nworker := opt.ParallelWorkers()
buff := make([]byte, 1024*1024)
chkchan := ReadFileChunk(
opt.Source(),
reader,
buff,
1024*1024,
EndOfLastFastaEntry,
"\n>",
)
for i := 0; i < nworker; i++ {