https://github.com/frostyplanet/crossfire-rs #async #crossbeam #developer #HackerNews #ngated
Crossfire: High-performance lockless spsc/mpsc/mpmc channels for Rust
https://github.com/frostyplanet/crossfire-rs
#HackerNews #Crossfire #Rust #lockless #channels #performance #concurrency #programming
Lockless MPSC/SPMC/MPMC queues are not queues
https://alexsaveau.dev/blog/opinions/performance/lockness/lockless-queues-are-not-queues
#HackerNews #Lockless #Queues #MPSC #SPMC #MPMC #Performance #Programming #Concurrency
Lockless queues let multiple cores communicate with each other without mutexes, typically to move work around for parallel processing. They come in four variants: {single,multi}-producer {single,multi}-consumer. A producer gives data to a consumer, each of which can be limited to a single thread (i.e. a single-{producer,consumer}) or shared across multiple threads. But only the single-producer single-consumer (SPSC) queue is actually a queue!