#Building a High-Performance Database Buffer Pool in Zig with io_uring and new Fixed-Buffer mode

1 messages · Page 1 of 1 (latest)

iron jay
#

https://gavinray97.github.io/blog/io-uring-fixed-bufferpool-zig

Wanted to share a post I finished today, in case anyone finds it interesting/useful
I am not very familiar with Zig (and had to ask for help here at some points), so if the code is poor, please tell me so I can fix it 👍

Gavin Ray Blog

In this post, we will explore how to build a high-performance database buffer pool in Zig using io_uring's new fixed-buffer mode.

peak knot
#

fwiw your Zig code looks pretty good. The only somewhat advanced tip I'd offer is that your IoUringBufferPoolManager might want to take num pages and page size as a comptime parameter so this is more reusable (if you wanted0.

tranquil bear
peak knot
#

And I don't know much about io_uring so this was fun to read 🙂

boreal shuttle
tranquil bear
#

Hmm I see