首页
社区
课程
招聘
[转帖]C++: Optimization Techniques
2020-10-11 23:51 3295

[转帖]C++: Optimization Techniques

2020-10-11 23:51
3295

C++: Optimization Techniques

English | 2020 | ASIN: B08KLP3R9Y | 450 Pages | PDF/EPUB/AZW3/MOBi | 7.48 MB

Deciding Whether to Optimize

Suppose you have written a program to calculate mortgage payments; the yearly run takes ten minutes.

Should you spend two hours to double its speed? Probably not, since it will take twenty-four years to

pay back the original investment of time at five minutes per year.2 On the other hand, if you run a

program for three hours every working day, even spending thirty hours to double its speed will pay

for itself in only twenty working days, or about a month. Obviously the latter is a much better

candidate for optimization. Usually, of course, the situation is not nearly so unambiguous: even if your

system is overloaded, it may not be immediately apparent which program is responsible.3 My general

rule is not to optimize a program that performs satisfactorily. If you (or the intended users) don't

become impatient while waiting for it to finish, don't bother. Of course, if you just feel like indulging

in some recreational optimization, that's another matter.

https://mega.nz/file/Z50yVQjL#o5vz4ytrCSYbtUeZ0U2dg5GIUpgr62DZ5mw1KLzb_JU



[CTF入门培训]顶尖高校博士及硕士团队亲授《30小时教你玩转CTF》,视频+靶场+题目!助力进入CTF世界

收藏
点赞2
打赏
分享
最新回复 (3)
雪    币: 453
活跃值: (129)
能力值: (RANK:0 )
在线值:
发帖
回帖
粉丝
同志们好啊 2021-3-31 23:15
2
0
能不能给个可下载地址啊,上面的地址访问不了.
雪    币: 95
活跃值: (501)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
sciwander 2021-4-4 20:06
3
1
链接: https://pan.baidu.com/s/1cybXzdrphYo-6wwxeJ9BKw 提取码: hmtt 
雪    币: 453
活跃值: (129)
能力值: (RANK:0 )
在线值:
发帖
回帖
粉丝
同志们好啊 2021-4-4 20:17
4
0
sciwander 链接: https://pan.baidu.com/s/1cybXzdrphYo-6wwxeJ9BKw 提取码: hmtt
感谢.这里也有:
https://wwi.lanzous.com/itByOnkmmre
游客
登录 | 注册 方可回帖
返回