HN 精选

"Clean" Code, Horrible Performance

Molly Rocket
3 人推荐 · 跨 5 个月 · 2023–2026
软件性能与系统优化软件架构与系统设计
"Clean" Code, Horrible Performance

中文导读

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 上的提及

reference akasakahakada · 2023-07 · HN 原文
rec GuestHNUser · 2023-11 · HN 原文
Casey Muratori has a number of talks well worth listening to
reference GuestHNUser · 2023-11 · HN 原文
rec GuestHNUser · 2024-04 · HN 原文
I like this video on the topic for reasons not to follow SOLID principles
rec xiphias2 · 2024-08 · HN 原文
Look at Casey Murrey's Clean Code horrible performance youtube video

相关视频