> > > I agree that modules that can always be built, should be. Such modules > should have no guarding #ifdefs. I think this is the set of modules that > your proposal is targeting, but please correct me if I am wrong. FWIW, > this design stems from an even more general/fundamental rule of thumb: > Do not add unnecessary #ifdefs. >
I agree. We could also work on better isolation, by restricting #ifdef-guarded areas to specific delegate classes, and then using c++ features (e.g. if constexpr, eventually) to disable the callsites. > However, there is a precondition: Any always-built optional feature with > a potentially significant performance impact or a controversial side > effect should be disabled by default (via squid.conf). Satisfying this > precondition will require code changes. > Yes, I agree. -- Francesco
_______________________________________________ squid-dev mailing list squid-dev@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-dev