Simple Code, High Performance
6 人推荐 · 跨 6 个月 · 2021–2025

中文导读
知名游戏引擎开发者 Casey Muratori 在特文特大学的客座讲座。他通过极为直观的代码实例,展示了如何用几打简单代码替代数千行冗余抽象,将数十秒的运行时间直接压到 1 秒以内,犀利揭露现代软件因层层抽象而动辄慢上几个数量级的症结所在。
为什么 HN 推它
想要领会现代 CPU 真实极限、直面软件抽象开销的必看现场课,工程师群体推崇备至的硬核性能反思。
「强烈建议所有写代码的人都看一遍。」HN 网友原话:I highly recommend watching it.
英文原摘要(HackerTube / Claude 整理)
Casey Muratori's University of Twente guest lecture is a case study in how straightforward code can cut thousands of lines and tens of seconds of runtime down to a few dozen lines running in under a second. It uses concrete examples to show why software is often an order of magnitude slower than it should be.
HN people recommend it to anyone wanting a practical sense of what CPUs can really do and why abstraction layers cost so much performance.
HN 上的提及
There are no tricks, you just have to give up mountains of levels of abstraction accumulated over the years.
Casey Muratori's (who has been on here a lot lately) talk nails it [1]
Here Casy explains a grass planting algorithm for games, where white noise wouldn't be suitable.
Here's an example of how to algorithmically place grass in the game "The Witness".
I highly recommend watching it.