Hacker News new | ask | show | jobs
by NiceGuy_Ty 2995 days ago
Putting the string in the binary is really only useful for trying to do ultra-portable deployments like this imo. The overhead of copying the string into memory is pretty meaningless in the use case where you only expect a single, home-desktop user.

Now if this was a production server having to service thousands of clients than the sendfile optimization becomes much more important.

1 comments

Even in production though, you can just have a step on startup which copies built-in resources to a /tmp location and then sendfile's from there.