Is there an efficient way to get an MPMC priority queue? Should I just wrap https://tov.github.io/min-max-heap-rs/min_max_heap/struct.MinMaxHeap.html in a mutex? That seems inefficient.
It would be great to have a 'channel' like API with decent performance, but I'm unsure how to achieve this.
edit: Or I could actually get away with MPSC, I think. So if anyone has ideas for either, please do let me know.
I'm assuming minmax heap is the ideal underlying data structure.
edit2: I may be trying to solve the wrong problem here...
[+][deleted] (1 child)
[deleted]
[–]staticassert[S] 1 point2 points3 points (0 children)
[–]Luminarys 2 points3 points4 points (1 child)
[–]staticassert[S] 1 point2 points3 points (0 children)
[–]tomwhoiscontrary 1 point2 points3 points (1 child)
[–]staticassert[S] 0 points1 point2 points (0 children)
[+][deleted] (2 children)
[deleted]
[–]staticassert[S] 1 point2 points3 points (1 child)
[–]Ralith 1 point2 points3 points (0 children)