Git Product home page Git Product logo

Comments (5)

fereidani avatar fereidani commented on July 28, 2024 2

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.

caass avatar caass commented on July 28, 2024

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.

Originalimoc avatar Originalimoc commented on July 28, 2024

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.

fereidani avatar fereidani commented on July 28, 2024

@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.

Originalimoc avatar Originalimoc commented on July 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.