[HN Gopher] Increase HTTP performance by fitting in the initial ...
___________________________________________________________________
Increase HTTP performance by fitting in the initial TCP slow start
window
Author : mstats
Score : 96 points
Date : 2021-08-08 06:27 UTC (16 hours ago)
(HTM) web link (sirupsen.com)
(TXT) w3m dump (sirupsen.com)
| torgoguys wrote:
| 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
| LinuxBender wrote:
| 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.
| MrStonedOne wrote:
| 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.
| cranekam wrote:
| I think you're confusing the receive window (advertised by the
| receiver and measured in bytes) and the congestion window
| (maintained by the sender and based on acknowledged segments).
|
| https://en.wikipedia.org/wiki/TCP_congestion_control#Congest...
| xmichael0 wrote:
| TLDR; if your website is smaller it will load faster...
| dieulot wrote:
| TLS also uses TCP, which enlarges the congestion window
| beforehand. This magical 12-14kB recommendation is obsolete
| nowadays with HTTPS and HTTP/2. See
| https://www.tunetheweb.com/blog/critical-resources-and-the-f...
___________________________________________________________________
(page generated 2021-08-08 23:02 UTC)