[squid-dev] [PATCH] Bug 4662 adding --with-libressl build option

Alex Rousskov rousskov at measurement-factory.com
Wed Feb 1 15:04:49 UTC 2017


On 02/01/2017 05:00 AM, Eliezer  Croitoru wrote:

> I do believe that for the latest hardware with beefy CPU, code
> repetition in C++ might not be much of a regression but not everybody
> can replace their systems hardware every year. (If my assumption
> about code repetition affecting older systems is wrong let me know)

In general, code duplication itself has negligible impact on performance
(which can go either way, depending on the circumstances).

Code duplication leads to bugs and increases the cost of development.
Its long-term effect is often exponential. I speculate that at least 20%
of Squid bugs are caused by code duplication, and an average Squid
development project is at least 20% more expensive because of it. It is
a big deal!

Fortunately, it is usually easy to avoid when writing new code.
Unfortunately, I have to keep begging and begging to avoid it in new
code, as if it is some obscure or unimportant problem and not a basic
development principle.

Alex.



More information about the squid-dev mailing list