CppCon 2019: Chandler Carruth “There Are No Zero-cost Abstractions”
CppConYouTube ↗
延伸阅读 1
字幕解读
Carruth 用构建时间和调用约定拆开「零开销」的不同含义。一段热路径没有额外指令,仍可能把成本转给编译器;跨函数边界传递所有权也受 ABI 约束。
视频与逐字稿来源 ↗ · 引文按字幕原文展示,可点时间戳回看片段。
补充字幕原文 2
it just means the cost is paid somewhere elsethat's a change to the calling convention of C++