Ludovic Courtès <[email protected]> writes: > Hello! > > Hilton Chain <[email protected]> writes: > >> Enable HTTP/2 support >> https://github.com/NixOS/nix/commit/90ad02bf626b885a5dd8967894e2eafc953bdf92 >> --8<---------------cut here---------------start------------->8--- >> For example, downloading 802 .narinfo files from >> https://cache.nixos.org/, using a single TCP connection, takes 11.8s >> with HTTP/1.1, but only 0.61s with HTTP/2. >> --8<---------------cut here---------------end--------------->8--- > > I’m curious about the details. ‘fetch-narinfos’ in (guix substitutes) > uses HTTP pipeline (via ‘http-multiple-get’), which is rather efficient > since there’s only one round-trip to fetch 100s of narinfos. > > Sometimes HTTP/1.1 servers won’t allow for long pipelines (like more > than 500 requests) but in cases where we control the server, we can > always tweak that.
Yes, in this case the server cannot be controlled if placed behind Cloudflare. So I'll need to figure out what's allowed on Cloudflare side. I'm curious why even cached narinfo requests on Cloudflare has worse performance than direct connection though.
