4 ms·
There are benefits in switching to HTTPS even if it's not done for security reasons. Namely, HTTP/2. However, I'm not sure if the benefit in speed would be mea
by sgjohnson 8y ago
There are benefits in switching to HTTPS even if it's not done for security reasons. Namely, HTTP/2.
However, I'm not sure if the benefit in speed would be measurable for apt.
- toast0 8y agoHTTP/2 is more likely to be a downside than an upside for apt. You would have additional framing overhead, and I can't see a benefit over pipelined http/1.1 be (which is definitely doable because all the requests are get for static files). Maybe header compression of the small headers could be a very minor win. Multiplexing within a tcp stream is at best neutral for this case, but probably negative: on the client side, it means the possibility of multiple partial files instead of one; on the server, it means more parallel demand on the file system.
- anfilt 8y agoHow is HTTP/2 a benefit for a file store? The design of HTTP/2 helps websites more. It supports push since webpages include resources that a server knows a client is going to need anyways. This avoids request latency for websites. It also allows connection reuse (via multiplexing. However, again this is mostly helpful for websites. Decrease latency by avoiding tcp hand shake. It allows for slightly smaller headers since it's a binary protocol. However, pretty much none these really help with large file downloads, and other use cases like APT. Even the headers will be dwarfed by the files themselves, and the header information is probably already pretty minimal. Also HTTP/2 does not require TLS it's just pretty much all the browsers ignore that the standard does not require TLS. However, they are trying to push for more encrypted traffic. A decision I don't really think browsers should be making.