CppCoreGuidelines Per.5 底层代码不一定比高层代码快
03 June 2023
“Don’t assume that low-level code is necessarily faster than high-level code”
理由
底层代码有时候限制了优化。优化器有时候能优化上层代码,且极其显著。
“Don’t assume that low-level code is necessarily faster than high-level code”
理由
底层代码有时候限制了优化。优化器有时候能优化上层代码,且极其显著。