On Wednesday, April 05, 2017 18:28:53 Dusty Mabe wrote:
On 04/05/2017 12:17 PM, Kamil Dudka wrote:
> On Wednesday, April 05, 2017 11:38:35 Colin Walters wrote:
>> libostree does that -
>>
https://github.com/ostreedev/ostree/blob/c937305c0e7f5609273e25753912c294
>> b0
>> 40a6ac/src/libostree/ostree-fetcher-curl.c
>>
>> In the exploded archive case, I get quite a lot of speedup.
>>
>> librepo is not quite as good at this yet, but it matters less for RPMs.
>
> I cannot see CURLOPT_PIPEWAIT or CURLMOPT_PIPELINING options in your code.
> They are needed if you want to take advantage of the core HTTP/2 features.
> Otherwise you can slightly benefit from the compressed HTTP headers but
> you
> are not using the HTTP/2 pipelining/multiplexing. I would suggest to have
> a look at the http2-download.c example:
>
>
https://github.com/curl/curl/blob/curl-7_53_0/docs/examples/http2-download
> .c
FYI:
https://github.com/ostreedev/ostree/pull/780
Looks good!
Kamil
> Thanks for your suggestion!
>
> Dusty