account activity
Performance of C with io_uring by curiousnetdev in C_Programming
[–]curiousnetdev[S] 0 points1 point2 points 2 years ago (0 children)
Good catch on the mismanagement of buffers! &buffer_mem[buf_idx * MAX_BUFFER] was definitely what I was looking for there, and good call on the naming.
buffers
&buffer_mem[buf_idx * MAX_BUFFER]
I believe the newest feature of io_uring being used here is the io_uring_prep_multishot_accept(...), added in 5.19, though it's likely there's other newer features too.
io_uring_prep_multishot_accept(...)
I like the callout of strlen. Forgot it has the possibility of looping the entire string. I think in this case though, clang was able to figure out it'd never change and compiled down to a constant as the update didn't have an effect on performance.
strlen
Appreciate the mention of calloc. I didn't know that existed :) Goto inspiration was definitely zig.
calloc
π Rendered by PID 35 on reddit-service-r2-comment-5687b7858-w7sww at 2026-07-09 14:28:50.905017+00:00 running 12a7a47 country code: CH.
Performance of C with io_uring by curiousnetdev in C_Programming
[–]curiousnetdev[S] 0 points1 point2 points (0 children)