Skip to content

About

⚙️ Cache-line aligned, wait-free Single-Producer Single-Consumer (SPSC) ring buffer in C++20

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

⚙️ fast-ring-cpp

C++ CI Language: C++20 License: MIT

Cache-line aligned, wait-free Single-Producer Single-Consumer (SPSC) ring buffer in modern C++20.


⚡ Architecture Highlights

  • Wait-Free Concurrency: Zero mutex locks, spinlocks, or atomic CAS loops on critical execution path.
  • Cache-Line Alignment: Separates reader and writer state using hardware interference boundary padding to eliminate false sharing.
  • Power-of-Two Bitmasking: Instantaneous slot indexing using fast bitwise operations.
  • Throughput: Delivers tens of millions of operations per second with sub-microsecond transfer latency.

🚀 Quick Start

git clone https://github.com/IsmeetPandey/fast-ring-cpp.git
cd fast-ring-cpp
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build
./build/bench_ring

📄 License

MIT License © 2026 Ismeet Pandey.

About

⚙️ Cache-line aligned, wait-free Single-Producer Single-Consumer (SPSC) ring buffer in C++20

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages