htsjdk icon indicating copy to clipboard operation
htsjdk copied to clipboard

reducing memory required in IntervalMergerIterator when not concatting names

Open meganshand opened this issue 7 months ago • 1 comments

When using IntervalMergerIterator to merge many small intervals over a whole contig it can take quite a bit of memory to store each interval. This can happen when trying to convert a GVCF with many reference blocks that are only a few bases in length into an interval list. The intervals are stored only to concat the names of each interval, which is not useful when merging so many intervals. This change keeps memory usage lower by not adding each interval that is iterated over to toBeMerged when concatenateNames is false.

meganshand avatar Jun 25 '24 19:06 meganshand