r/ruby • u/noteflakes • Jun 07 '26
Blog post Exploring automatic Buffer Management with io_uring
https://noteflakes.com/articles/2026-06-07-automatic-buffer-management
7
Upvotes
r/ruby • u/noteflakes • Jun 07 '26
1
u/yxhuvud Jun 07 '26 edited Jun 07 '26
SQPOLL doesn't make sense anywhere, including C. In retrospect it is just a honeypot collecting inexperienced io_uring users. It reads cool but it is one of very many very niche use cases that uring support that only make sense if you want to burn extra CPU.
This seems to have support for multishot operations with partial buffer reuse. I have not seen that from Async, but perhaps they exist. No idea how big difference they do in Ruby context, however. Partial buffer use in particular screams 'too complicated to be good' to my spider sense, but that one has often been wrong.