tejzpr / ordered-concurrently

Ordered-concurrently a library for concurrent processing with ordered output in Go. Process work concurrently and returns output in a channel in the order of input. It is useful in concurrently processing items in a queue, and get output in the order provided by the queue.
BSD 3-Clause "New" or "Revised" License
37 stars 8 forks source link

Heap & workfunction implementation #3

Closed tejzpr closed 3 years ago

zhaoxinyu commented 1 year ago

Hi ! tejzpr. Why was the original map buffering method replaced with the heap implementation? I wonder how large is the performance gap?