BlueRaja / High-Speed-Priority-Queue-for-C-Sharp

A C# priority queue optimized for pathfinding applications
MIT License
1.15k stars 169 forks source link

Look into C# 10 INumber interface #58

Open BlueRaja opened 2 years ago

BlueRaja commented 2 years ago

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.