Re: CPU usage since 8.7.1

Daniel Stenberg via curl-library <[email protected]> Tue, 28 Oct 2025 17:32:27 +0100 (CET)
Newsgroups gmane.comp.web.curl.library
Message-ID <[email protected]>
On Tue, 28 Oct 2025, Gleb Smirnoff via curl-library wrote:

> So here I am raising this question.  What needs to be done to get CPU 
> savings of 8.6.0 level and how can we help here?

As recall things, the change that introduced the new (current) behavior was 
done to enhance the accuracy of the rate limit logic, at the expense of CPU.

The change was pushed for by someone who argued that the increased precision 
was valuable for them if I remember correctly.

Can we find a way to have both ways and let the user select which? Maybe for 
example by maybe something as silly and simple as doing 
CURLOPT_MAX_RECV_SPEED_LARGE % 10000 and if that is non-zero, higher precision 
is wanted.

-- 

  / daniel.haxx.se || https://rock-solid.curl.dev
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html