-
1st of all, I think ring buffer should be compile time fixed sized so it's trivial to do modulus op.
I'm thinking about a better ring buffer which can be multiple producers & multiple consumers witho…
-
パフォーマンス改善のためBCノードから取得したイベントを非同期に処理する。以下2つのパターンが考えられる。
* threadA(polling BC node) --> channel --> threadB(ecall)
* threadA(polling) --> channel --> threadB(formatting) --> channel --> threadC(ecall…
-
Here's a simple benchmark:
```rust
#![feature(test)]
extern crate crossbeam_channel as channel;
extern crate test;
use std::sync::mpsc;
#[bench]
fn oneshot_mpsc(b: &mut test::Bencher) {…
ghost updated
2 years ago
-
[`TestLoopV2::run_until`](https://github.com/near/nearcore/blob/4c15f92ff1d9ecfd671296ccb8f855e7e85f5a2b/core/async/src/test_loop.rs#L386) runs testloop until the condition is met or it hits the timeo…
-
Below is a list of OCaml 5 lockfree data structures done by some awesome hackers. These were done either out of curiosity, or due to the needing them for applications. In any case, it would be nice to…
-
Sometimes an agent handles a number of messages of the same type. For example, a message `msg_incoming_data` with a portion of fresh data to process. The problem arises when the agent handles messages…
-
That one can be used at Apache MINA and QuickFixJ, is there too much effort for these to happen?
-
First of all, thanks for the great library.
I'm [possibly] planning to use it, but I'm just wondering about one thing...
Looking at the tests, it seems like they aren't done using multiple thread…
-
Xadd qs can check if there are free chunks available before performing an offer: it would enable a weak form of back-pressure depending on the configured pooled chunks.
Not sure If relaxedOffer is …
-
I was looking for fairness guarantees of the `Semaphore` implementation and didn't find anything mentioned in the docs. After some digging I found that `event_listener::Event` is used internally and d…