However looks like extending a BinaryHeap
with a Drain
falls back to just push
ing each element, which may be much slower than rebuilding the heap if the Drain
contained a lot of elements.
However looks like extending a BinaryHeap
with a Drain
falls back to just push
ing each element, which may be much slower than rebuilding the heap if the Drain
contained a lot of elements.