Java - PriorityQueue vs sorted LinkedList
Posted
by msr
on Stack Overflow
See other posts from Stack Overflow
or by msr
Published on 2010-05-20T21:50:19Z
Indexed on
2010/05/20
21:50 UTC
Read the original article
Hit count: 263
Hello,
Which implementation is less "heavy": PriorityQueue or a sorted LinkedList (using a Comparator)?
I want to have all the items sorted. The insertion will be very frequent and ocasionally I will have to run all the list to make some operations.
Thank you!
© Stack Overflow or respective owner