I agree.

Also, clean code is never about performance, but about maintainability.

And the benchmarking is biased. The functions are so simple that the overhead is far more obvious than the real world.

This said, I would say I am never a fan of virtual interface, especially when there is only one real implementation.

On Wed, 1 Mar 2023 at 16:39, JC van Winkel via SG20 <sg20@lists.isocpp.org> wrote:
Hi,

I came across this article (summary of a video) that says that we are teaching people the wrong things.

My feeling is that the presenter is cherry picking the worst possible examples and values micro-optimizations over maintainability and I wonder how often the presenter has worked on really large code bases...

JC
--
SG20 mailing list
SG20@lists.isocpp.org
https://lists.isocpp.org/mailman/listinfo.cgi/sg20


--
Yongwei Wu
URL: http://wyw.dcweb.cn/