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.

Ludo’.

Reply via email to