C ++性能,对于同时 [英] C++ performance, for versus while

查看:71
本文介绍了C ++性能,对于同时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一般来说(或根据你的经验),for和while循环之间的性能是否有区别?



如果它们是双重/三重嵌套的, >

g ++或英特尔编译器中的向量化(SSE)是否受循环变量影响?



谢谢

解决方案

这里是一个很好的论文。


In general (or from your experience), is there difference in performance between for and while loops?

What if they are doubly/triply nested?

Is vectorization (SSE) affected by loop variant in g++ or Intel compilers?

Thank you

解决方案

Here is a nice paper on the subject.

这篇关于C ++性能,对于同时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆