C ++优化技术 [英] C++ Optimization Techniques

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

问题描述

有没有提供常见的C ++优化的做法有很大列表中的网站?

Is there a site that provides a great list of common C++ optimization practices?

我的意思优化是,你必须修改源$ C ​​$ C,能够更快地运行一个程序,不改变编译器设置。

What I mean by optimization is that you have to modify the source code to be able to run a program faster, not changing the compiler settings.

推荐答案

两种方式写出更好的方案:

Two ways to write better programs:

使语言的最佳使用


  1. code完全由史蒂夫·麦康奈尔

  2. C ++有效

  3. 例外C ++

个人资料您的应用程序


  1. 确定code领域正在采取什么多少时间

  2. 看看你能不能用更好的数据结构/算法,以使事情更快

有没有太多的语言具体的优化可以做的 - 它被限制使用的语言构造(#1学习)。主要好处来自于上面的#2。

There is not much language specific optimization one can do - it is limited to using language constructs (learn from #1). The main benefit comes from #2 above.

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

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