Comments (5)
Hey @caass , Thank you, It would be nice.
I think my documentation is insufficient so a general overview would be nice.
Documentation could be in the style of Rust's own MPSC channel to help integrity between Kanal and Rust own documentation.
https://doc.rust-lang.org/src/std/sync/mpsc/mod.rs.html#1-126
Please use wrap_comments = true
in your rustfmt.toml
with nightly rustfmt.
from kanal.
Hey, I'm interested in improving documentation. Do you have a general sense of what's needed or should I just check the codebase and start documenting?
from kanal.
bounded_async is indeed fast, use bound size 40 with 1500 bytes data in spsc setup gets 23Million pks compare to 4.9M tokio::mpsc. Most gain from no syscall(this includes lock contention). will keep a close eye on unsafe part code.
Edit/Note: 1p2c reduced to 11M from 1p1c 23M, expected bc lock, data integrity passed plus no message loss so far.
Edit2: 1p1c, unbounded_async, only 1.5M, is it expected?
from kanal.
@Originalimoc unbounded_async should not be much different from bounded 40, it could be related to your software design because in our benchmarks they are pretty close, and sometimes unbounded is faster than bounded.
from kanal.
It's just a dumb two-task tokio async test using unbounded_async, one loop send a bunch one for recv.await, then after all received side calculate count divided by time elapsed, multicore AMD 2 CCD system default tokio runtime.
from kanal.
Related Issues (20)
- Add Oneshot implementation HOT 17
- Async can't utilize `KanalPtr` as effective as Sync HOT 1
- Are kanal functions cancel-safe? HOT 9
- Miri error when forgetting Box<T> HOT 2
- oneshot deadlock in 0.1.0-pre8 HOT 4
- Intrusive variants HOT 3
- Feature: implement recv_timeout for AsyncReceiver HOT 2
- Kanal is slower than crossbeam HOT 1
- Incorrect Send and Sync bounds HOT 2
- Oneshot: Data race detected HOT 4
- Unsound implementation of `as_sync` HOT 3
- Usage example
- Feature: Provide a select! macro HOT 6
- Slow usize send when using `MiMalloc` HOT 1
- mixing sync and async context HOT 2
- `Stream` that take ownership of the `Receiver` HOT 1
- OneshotSender is not Sync HOT 1
- API design for oneshot sender
- Oneshot: UB triggered when using Axum HOT 2
- Sink impl for AsyncSender?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kanal.