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

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

No files matched your search

+2 -3
View File
@@ -223,13 +223,12 @@ func ReadGenbank(reader io.Reader, options ...WithOption) (obiiter.IBioSequence,
opt := MakeOptions(options)
// entry_channel := make(chan _FileChunk)
buff := make([]byte, 1024*1024*128) // 128 MB
entry_channel := ReadFileChunk(
opt.Source(),
reader,
buff,
1024*1024*128,
EndOfLastFlatFileEntry,
"\nLOCUS ",
)
newIter := obiiter.MakeIBioSequence()