Skip to main content


The longest function in #curl production code and the length of the 99th percentile function. Over time.

Something to work on.

#curl
in reply to daniel:// stenberg://

and related, the cyclomatic complexity of functions in #curl. The worst and the 99th percentile. Over time.
#curl
in reply to daniel:// stenberg://

what does the mighty function do?

I often find complexity measures overstate the "perceived complexity" of state-machine style code

in reply to Edwin Young

@edyoung it's the big switch() taking care of the 306 different options curl_easy_setopt() supports.
in reply to daniel:// stenberg://

Curl doesn't yet have its own custom scripting language, an optimized TCPIP stack, and an optimized FPGA logic implementation? It doesn't require virtual processor extensions or a GPU for its.machine learning enhanced caching and rendering? It doesn't require custom compiler extensions for its inline assembly optimizations?
in reply to daniel:// stenberg://

@profdc9 It needs an ad hoc, informally-specified, bug-ridden, slow implementation of half of Common Lisp.