≈ the.bay.news

Introducing Zigrupt: a high-performance inter-thread event broadcasting library for Zig

Ziggit
Introducing Zigrupt: a high-performance inter-thread event broadcasting library for Zig
Zigrupt Zigrupt is heavily inspired by the LMAX Disruptor. It lets application threads publish events once and have multiple handlers process every event, in order, on their own threads. It uses a ring buffer, atomics and memory barriers to make the even broadcasting lock-free, plus it uses cache-line optimizations to avoid false-sharing, adding all those up you get very low latency when compared to a simple mutex based queue. These optimizations were adapted from the LMAX design itself. Bench...

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.