29 ms·
I spent a solid few days chasing this exact damn rabbit. I thought I could beat the PQ implementation in .NET with something like this but I never even got clo
by bob1029 2y ago
I spent a solid few days chasing this exact damn rabbit.
I thought I could beat the PQ implementation in .NET with something like this but I never even got close.
I think my use case breaks the assumptions in this paper due to the volatility of the distribution over time.
Edit: For reference, this is the approach taken by .NET - https://en.m.wikipedia.org/wiki/D-ary_heap https://en.m.wikipedia.org/wiki/D-ary_heap
- neonsunset 2y agoIf you would like to contribute, there might be a better optimization opportunity in the current bounded Channel<T> implementation: https://github.com/dotnet/runtime/discussions/104791#discussioncomment-10031979 https://github.com/dotnet/runtime/discussions/104791#discuss...