6 comments

[ 2.8 ms ] story [ 25.3 ms ] thread
Its a nit-pick, but the article talks a lot about packets in flight, yet tcp doesn't actually care about amount of packets in flight, as much as the amount of bytes in flight, and conflating the two just irks me.

edit: maybe i'm confusing the receive window with something else.

If you want fast initial load, then there is packet.city [0], "the greatest website to ever fit in a single TCP packet." :-) It also has a few other optimizations to make the response as fast as possible that are discussed on its github. [1]

[0] http://packet.city/ (Warning: loud audio)

[1] https://github.com/diracdeltas/FastestWebsiteEver

One thing to note from the github link:

  echo 1 > /proc/sys/net/ipv4/tcp_low_latency
That was deprecated in 2017. The sysctl is still there, but doesn't actually do anything in newer kernels. There are a few other ways to lower latency at the expense of throughput but I will let folks research that themselves.
TLDR; if your website is smaller it will load faster...