≈ the.bay.news

Draupnir: magic ring buffer Io.Reader/Writer

Ziggit
Draupnir: magic ring buffer Io.Reader/Writer
Draupnir: magic ring buffer Io.Reader/Io.Writer https://codeberg.org/benburkert/draupnir Draupnir is a fast, concurrent, thread-safe ring buffer with an std.Io.Reader/std.Io.Writer interface. It implements the magic ring buffer pattern to provide a single contiguous slice for io interface buffers. Reading from and writing to an interface buffer is also lock-free. var ring: draupnir.Ring = try .init(io, std.heap.pageSize()); defer ring.deinit() catch unreachable; // read 128 MiB var read_fut...

0 comments

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

No comments yet.