curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder Daniel himself.

Re: Increase in CPU usage in 8.7.1 vs 8.6.0 for rate-limited downloads

From: David Pfitzner via curl-library <curl-library_at_lists.haxx.se>
Date: Wed, 15 May 2024 20:33:47 +0930

On Wed, May 15, 2024 at 5:31 PM Daniel Stenberg <daniel_at_haxx.se> wrote:

> On Wed, 15 May 2024, David Pfitzner via curl-library wrote:
>
> > From testing, this change appears to be due to this commit:
> >
> >
> https://github.com/curl/curl/commit/db5c9f4f9e0779b49624752b135281a0717b277b
>
> So just reverting this single commit makes it "good" again?
>

Correct.

>
> > Perhaps it would be useful for a user of libcurl to be able to (somehow)
> > control this tradeoff between rate-limiting accuracy and CPU usage?
>
> Perhaps getting more data would be a first step. How big difference in
> rate-limit accuracy does this commit make in your case?
>
> I have not looked at that carefully, but casually I don't see much
difference if any. But possibly closer inspection may find a systematic
difference. I also suspect one may see bigger differences in some regime
different to what I'm looking at - eg, smaller files.

-- David


-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2024-05-15