v2.1 plans #10
Replies: 4 comments 13 replies
-
|
I noticed the same thing. the main difference being the baked in support for the channel select api as well as the blocking mechanism for send/receive. i think if you were to re-use the same blocking setup (context) using crossbeam-queue you would get the same result as their channel. which would let you implement an async version of the context. |
Beta Was this translation helpful? Give feedback.
-
|
What's the reasoning for using the pattern |
Beta Was this translation helpful? Give feedback.
-
|
Current state dev branch commit dd67664 I have Backoff loop in blocking context similar to crossbeam (looping 5~6 times before putting to sleep). Have similar speed to crossbeam. The overall cost of RegistryMulti (with VecDeque) is a bit smaller than crossbeam's SyncWaker (with Vec). I think direct copy is better in blocking than async (since async future will cancel, blocking context will not, and timeout need to call send_timeout specificly). I might resolve to direct copy method after pursuing the congestion control algorithm. A snapshot of benchmark result (commit dd67664)
|
Beta Was this translation helpful? Give feedback.
-
|
Just create a workflow named "cron-dev" to run tests in "dev" branch. I've noticed "cron-dev" takes 49m vs "cron-master" 33m. To locate the time cause, I have to isolate the time span in each case. I'm going to the log wrapper after fixing this issue NaturalIO/captains-log#6 My suspicion: something to do with the spinning in backoff, or there are bad cases not discovered through benchmarks. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Have been looking into the code of crossbeam-channel. The implementation of Array and List flavor is identical to ArrayQueue and SegQueue of crossbeam-queue. But I don't know why crossbeam-channel does not depend on crossbeam-queue to save the coding.
Beta Was this translation helpful? Give feedback.
All reactions