Optimize memory allocation of the apat algorithms

Former-commit-id: 5010c5a666b322715b3b81c1078d325e1f647ede
This commit is contained in:
2023-03-28 19:37:05 +07:00
parent 21819cd41e
commit 988ae79989
19 changed files with 117 additions and 180 deletions

View File

@ -97,8 +97,7 @@ func IUniqueSequence(iterator obiiter.IBioSequence,
// No more sub classification of sequence or only a single sequence
if opts.NoSingleton() && len(batch.Slice()) == 1 && batch.Slice()[0].Count() == 1 {
// We remove singleton from output
batch.Slice()[0].Recycle()
batch.Recycle()
batch.Recycle(true)
} else {
iUnique.Push(batch.Reorder(nextOrder()))
}