https://linen.dev/ logo
Somewhat related, i've been reading some of tigerb...
# general
c
Somewhat related, i've been reading some of tigerbeetle's code for sending data (over tcp), they apparently use
sendto(2)
with
MSG_DONTWAIT
to copy as many bytes as possible to the kernel before hitting a EWOULDBLOCK and doing the remaining sends in the io_ring: https://github.com/tigerbeetle/tigerbeetle/blob/main/src/message_bus.zig#L969-L1020 send_now implementation: https://github.com/tigerbeetle/tigerbeetle/blob/68958eb757747d0fc96a79d1f9c2fa6766b67b48/src/stdx/io/linux.zig#L1165 I would've never thought about doing this