"Clean" Code, Horrible Performance
3 人推荐 · 跨 5 个月 · 2023–2026

中文导读
Casey Muratori 通过基准测试对比展示了典型的“Clean Code”面向对象设计模式可能带来数倍的性能损耗,并将其与更简单、面向数据(data-oriented)的代码进行了性能对比。
为什么 HN 推它
关于 SOLID 和 Clean Code 性能争论中常被引用的核心代表作,代表了性能优先派的鲜明视角。
「看看 Casey Muratori 关于 Clean Code 极差性能的那期 YouTube 视频。」HN 网友原话:Look at Casey Murrey's Clean Code horrible performance youtube video
英文原摘要(HackerTube / Claude 整理)
Casey Muratori shows how typical 'clean code' object-oriented patterns can cost large factors in performance. He benchmarks them against simpler data-oriented code.
A frequent citation in debates about SOLID and Clean Code, representing the performance-first side of the argument.
HN 上的提及
Casey Muratori has a number of talks well worth listening to
I like this video on the topic for reasons not to follow SOLID principles
Look at Casey Murrey's Clean Code horrible performance youtube video