All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Crossfire-rs: High-Performance Lockless Channels for Rust with Async Support

By

0x1997

7mo ago· 5 min readenCode

Summary

Crossfire-rs is a high-performance lockless channel implementation for Rust that supports SPSC, MPSC, and MPMC patterns. It derives from Crossbeam with improvements, supports async contexts, and bridges async and blocking contexts. The library outperforms other async-capable channels due to its lockless design and lighter notification mechanism, though it relies on spinning and yielding algorithms.

Key quotes

· 5 pulled
High-performance lockless spsc/mpsc/mpmc channels, algorithm derives crossbeam with improvements.
It supports async contexts and bridges the gap between async and blocking contexts.
Being a lockless channel, crossfire outperforms other async-capable channels.
And thanks to a lighter notification mechanism, in a blocking context, most cases are even better than the original crossbeam-channel.
Also, being a lockless channel, the algorithm relies on spinning and yielding.
Snippet from the RSS feed
A lockless mpmc/mpsc to support async derive from crossbeam - frostyplanet/crossfire-rs

You might also wanna read