Can high cyclomatic complexity impact build time?

125 Views Asked by At

I know when we reduce cyclomatic complexity, it makes our code easier to read and maintain.

But are there any other documented, tangible benefits, specifically around improving build time?

It seems to me that, at least with the Microsoft CLR, that as C# or VB are being compiled, that lower cyclomatic complexity could potentially improve the build time, especially for really large, monolithic projects.

1

There are 1 best solutions below

1
On

If you consider the time to run the tests during the build, the answer is yes.

Source: https://en.wikipedia.org/wiki/Cyclomatic_complexity