Should be able to get a big speed gain in GenericPriorityQueue if number comparison JITs into a single CMP instruction (the current method using Comparison<TPriority> does not).
In fact if that works, I might be able to move the generics over to FastPriorityQueue and get rid of GenericPriorityQueue altogether.
Should be able to get a big speed gain in
GenericPriorityQueueif number comparison JITs into a singleCMPinstruction (the current method usingComparison<TPriority>does not).In fact if that works, I might be able to move the generics over to
FastPriorityQueueand get rid ofGenericPriorityQueuealtogether.