Coder Social home page Coder Social logo

ardaku / whisk Goto Github PK

View Code? Open in Web Editor NEW
13.0 2.0 1.0 824 KB

Simple and fast async channels

Home Page: https://docs.rs/crate/whisk/latest

License: Apache License 2.0

Rust 100.00%
async async-rust channels mpmc mpmc-queue rust rust-crate rust-library executor-agnostic

whisk's Introduction

Whisk

tests GitHub commit activity GitHub contributors
Crates.io Crates.io Crates.io (recent)
Crates.io Docs.rs

Simple and fast lockless async channels

Simple and fast async channels that can be used to implement futures, streams, notifiers, and actors. Whisk is purposely kept small, implemented in under 1000 lines of Rust code, with zero dependencies (not including feature flags to enable implementation of traits from other crates) - and also works on no_std!

Benchmarks

Naïve benchmarks for v0.13.0 actor on pasts runtime (compared with dynamic library) with Rust 1.78.0:

Dynamic library: 12ns
Whisk (2-thread): 1.102µs
Flume (2-thread): 1.013µs
Whisk (1-thread): 1.151µs
Flume (1-thread): 1.532µs

MSRV

The current MSRV is Rust 1.70.

MSRV is updated according to the Ardaku MSRV guidelines.

License

Copyright © 2022-2024 The Whisk Crate Contributor(s)

Licensed under any of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Help

If you want help using or contributing to this library, feel free to send me an email at [email protected].

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.