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

Add SimplePriorityQueue.Try...() overloads that expose priority as out parameter #55

Open JohannesMP opened 3 years ago

JohannesMP commented 3 years ago

In each case if the caller wants the priority of the head/head-to-be-removed/node-to-be-removed, they can now get it without an additional (Try)GetPriority call, making it easier to remain thread-safe while also avoiding an extra _itemToNodesCache lookup.

See issue https://github.com/BlueRaja/High-Speed-Priority-Queue-for-C-Sharp/issues/54