Skip to content

Commit a0ebe8e

Browse files
committed
perf: clear WFA matrices ASAP
1 parent e4ec98c commit a0ebe8e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/dist.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,12 @@ void evaluate_variants(std::shared_ptr<ctgSuperclusters> scs, int sc_idx,
628628
done = true;
629629
}
630630

631+
// clear pointer and offset matrices as soon as possible
632+
wfa_ptrs.clear();
633+
wfa_offs.clear();
634+
wfa_ptrs.shrink_to_fit();
635+
wfa_offs.shrink_to_fit();
636+
631637
// NOTE: if alignment failed because it was too expensive, this can only be caused by a FN
632638
// truth variant, since query variants can be skipped and the reference sections match.
633639
// Try alignments without some of the largest truth variants

0 commit comments

Comments
 (0)