Comment by mixmastamyk
3 months ago
Yes, I’d add that not merely “raw html” but a file on disk can be served directly by Linux without context switches (I forget the syscall), and transferred faster than generation.
3 months ago
Yes, I’d add that not merely “raw html” but a file on disk can be served directly by Linux without context switches (I forget the syscall), and transferred faster than generation.
sendfile? splice? io_uring?
Yes, most likely sendfile.