On May 15, 2015, at 4:04 PM, Chris Hegarty <chris.hega...@oracle.com> wrote:

> And/Or should PriorityQueue override addAll and provide a more performant 
> implementation for common Collection types ( just like the constructor )?
> 

It should be possible to improve this case too: create a new array, 
appropriately sized, holding the current elements and those of the collection 
(via toArray or iteration), then reestablish the heap invariant.

Paul.

Reply via email to