73

C++性能榨汁机之循环展开 - I'm Root lee !

 6 years ago
source link: http://irootlee.com/juicer_loop_unrolling/?
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
什么是循环展开?  循环展开,英文中称(Loop unwinding或loop unrolling),是一种牺牲程序的尺寸来加快程序的执行速度的优化方法。可以由程序员完成,也可由编译器自动优化完成。循环展开最常用来降低循环开销,为具有多个功能单元的处理器提供指令级并行。也有利于指令流水线的调度。循环展开对程序性能的影响  我们直接以实际代码向大家展示循环展开的作用,首先看未经过循环展开优化的代码

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK