← Back to context

Comment by jrockway

2 years ago

Does this matter? Yes, there's a lot of waste. But you also have a 1Gbps link. Every second that you don't use the full 1Gbps is also waste, right?

This is why I always pad out the end of my html files with a megabyte of  . A half empty pipe is a half wasted pipe.

  • Just be sure HTTP Compression is off though, or you're still half-wasting the pipe.

    Better to just dump randomized uncompressible data into html comments.

  • I think that's an unfair comparison. By using Nagle's algorithm for interactive work, you save bytes, but the software you're interacting with is that much less responsive. (If the client was responsible for echoing typed characters, then it wouldn't matter. But ssh and telnet don't work like that, unfortunately.)

    So by saving bytes and leaving your pipe empty, you just suffer in user experience. Why not use something you're already paying for to make your life better?

    (In the end, it seems like SSH agrees with me, and just wastes the bytes by enabling TCP_NODELAY.)