Live data from Hacker News

A 14kb page can load much faster than a 15kb page

endtimes.dev

1–10 of 356 posts

Re: A 14kb page can load much faster than a 15kb page

#2
> Most web servers TCP slow start algorithm starts by sending 10 TCP packets.

Of course big names that run CDNs have fancy custom stuff that directly puts data into mmaped regions for the network card to use, but generally, it's the OS handling TCP connections, and this means that the web server, a user space process, only interacts with the TCP connection through a streaming API. It can't issue individual TCP packets or ACK packets or anything. Raw socket access requires superuser privileges in unix.

Outside of that it's a great article. Didn't know about this particular trick :).

Re: A 14kb page can load much faster than a 15kb page

#4
post #2

> Most web servers TCP slow start algorithm starts by sending 10 TCP packets. Of course big names that run CDNs have fancy custom stuff that directly puts data into mmaped regions for the network card to use, but generally, it's the OS handling TCP connections, and this means that the web server, a user space process, only interacts with the TCP connection through a streaming API. It can't issue individual TCP packet…

"web server" can refer to the whole box, as opposed to the userspace software in particular, so it's not wrong per-se.

Re: A 14kb page can load much faster than a 15kb page

#5
post #2

> Most web servers TCP slow start algorithm starts by sending 10 TCP packets. Of course big names that run CDNs have fancy custom stuff that directly puts data into mmaped regions for the network card to use, but generally, it's the OS handling TCP connections, and this means that the web server, a user space process, only interacts with the TCP connection through a streaming API. It can't issue individual TCP packet…

The statement makes sense if you take web server to mean a logical unit including the underlying kernel.
Post reply on HN