News for hackers. Stuff that matters.
Re:Increase HTTP performance by fitting in the initial TCP s... by dieulot on Sunday August 08, 2021 @10:19AM (#28106883)
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...
Re:Increase HTTP performance by fitting in the initial TCP s... by torgoguys on Sunday August 08, 2021 @11:10AM (#28107286)
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

Re:Increase HTTP performance by fitting in the initial TCP s... by LinuxBender on Sunday August 08, 2021 @12:27PM (#28107884)
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.
Re:Increase HTTP performance by fitting in the initial TCP s... by MrStonedOne on Sunday August 08, 2021 @06:09AM (#28105577)
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.

Re:Increase HTTP performance by fitting in the initial TCP s... by cranekam on Sunday August 08, 2021 @07:28AM (#28105952)
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...

Re:Increase HTTP performance by fitting in the initial TCP s... by xmichael0 on Sunday August 08, 2021 @12:58PM (#28108160)
TLDR; if your website is smaller it will load faster...