阅读背景:

两个循环体或一个(结果相同)

来源:互联网 

I have long wondered what is more efficient with regards to making better use of CPU caches (which are known to benefit from locality of reference) - two loops each iterating over the same mathematical set of numbers, each with a different loop body, or having one loop that "concatenates" the two bodies into one, and thus accomplishes identical total result, but all in itself?I have long wondered what is more efficient wit




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: