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: Goal: reduce overall function complexity
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Dan Fandrich via curl-library <curl-library_at_lists.haxx.se>
Date: Wed, 14 May 2025 15:18:31 -0700
On Wed, May 14, 2025 at 11:53:35PM +0200, Daniel Stenberg wrote:
> Aggressive! We currently have no less than 326 functions scoring over 15. Out of 3436, so about
> 9.5% of all functions.
A graph showing a count or percentage of functions at a few McCabe complexity
levels (10, 15, 100) might be useful. Or, adding a p90 graph to the current
complexity graph would show essentially where these >= 15 functions stand
today.
> I think maybe a challenge with a whitelist is that functions sometimes change names.
True, but large, complex functions are probably less likely to change.
Doubling the whitelist length to 14 would bring us down to a complexity limit
of 80 with IMHO a still manageable whitelist.
Dan
Date: Wed, 14 May 2025 15:18:31 -0700
On Wed, May 14, 2025 at 11:53:35PM +0200, Daniel Stenberg wrote:
> Aggressive! We currently have no less than 326 functions scoring over 15. Out of 3436, so about
> 9.5% of all functions.
A graph showing a count or percentage of functions at a few McCabe complexity
levels (10, 15, 100) might be useful. Or, adding a p90 graph to the current
complexity graph would show essentially where these >= 15 functions stand
today.
> I think maybe a challenge with a whitelist is that functions sometimes change names.
True, but large, complex functions are probably less likely to change.
Doubling the whitelist length to 14 would bring us down to a complexity limit
of 80 with IMHO a still manageable whitelist.
Dan
-- Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library Etiquette: https://curl.se/mail/etiquette.htmlReceived on 2025-05-15