this post was submitted on 10 Jul 2025
883 points (99.8% liked)

Programmer Humor

24932 readers
1297 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] frezik@lemmy.blahaj.zone 8 points 20 hours ago

Meh. Even hosting static files in a RAM disk over localhost, you're 99% as good as you can be by using the sendfile() system call. The kernel can copy data from one file descriptor to another faster than any userspace program can. Implementing the Length header is a stat() call.

If you're not on a RAM disk and not on localhost, then disk access or network throughput will predominate.

Assembly is not magic go faster sauce.