现在的编译器越来越聪明,功能越来越强,从简单的函数内联,到复杂的寄存器分析,一系列代码革命使程序运行得越来越快。大多数时候,更快比更小重要,因为磁盘空间和内存都变得便宜了。但是在嵌入式系统里,更小和更快是一样重要的,所以把代码进行优化是非常有意义的工作。 如果你已经知道了怎样用gcc编译你的代码,现在是时候让你的代码更快或者更小了,这也是本章的内容。如果学有所成的话,你甚至可以让你的下一个程序既
转载 2021-08-14 11:10:46
430阅读
Overlooked Essentials For Optimizing Code From Auther's Blog (English):://www.drdobbs.com/blog/archives/2010/09/overlooked_esse.;jsessionid=ZCDFT154FWF4LQE1GHRSKH...
原创 2022-03-09 15:27:16
51阅读
Overlooked Essentials For Optimizing Code From Auther's Blog
原创 2021-12-14 11:39:50
40阅读
From Auther's Blog (English):http://www.drdobbs.com/blog/archives/2010/09/o
原创 2021-09-07 15:30:40
99阅读
埃尔伟《Android性能优化》原版阅读摘要之前言及优化Java代码 配部分英文翻译
翻译 精选 2015-09-10 16:01:22
1132阅读
前不久在微博上看到一篇非常好的短文讲怎样对C/C++进行性能优化,尽管其面向的领域是图形学中的光线跟踪,可是还是具有普遍的意义,将其翻译成中文,希望对大家写高质量代码有帮助。1.牢记阿姆达尔定律:加速比==当中表示函数func执行时间占总时间的百分比,表示对该函数加速获得的加速比。比如,你优化一个函...
转载 2015-04-29 21:38:00
83阅读
2评论
import time import pandas as pd import numpy as np with open('books_published_last_two_years.txt') as f: recent_books = f.read().split('\n') with open
IT
转载 2020-05-23 17:09:00
206阅读
2评论
向量代码化优化思想
转载 2023-06-15 15:46:19
99阅读
开头吐槽一句:当初被Java骗的呀,什么自动内存管理,到头来还是都要学的。还不如直接去学C++呐。第六章:理解垃圾收集标记-清除for each object in allocatedObjectList: clearing the mark bit // 所以对象是8字节的倍数,遍历还可以跳着来 DFS starting from GC-Roots: set the r
转载 2023-08-22 19:23:17
56阅读
Optimizing Physics PerformanceUnity has the next-generation NVIDIA PhysX physics engine built-in. This allows for unique emergent behaviour. But you should not forget that iOS is an OS designed for mobile devices and has its own performance limits which can be very easily reached. The following are
转载 2012-02-07 08:49:00
135阅读
2评论
A HOWTO on Optimizing PHPPHP is a very fast programming language, but there is more to optimizing PHP   than just speed of code execution.In this chapter, we explain why optimizing PHP involves m
转载 精选 2013-09-05 12:07:21
1657阅读
Optimizing Script PerformanceThis page gives some general hints for how to improve script performance on iOS.Reduce Fixed Delta TimeUse a fixed delta time of 15-25 fps. You can change this inEdit->Project Settings->Time. This reduces how oftenFixedUpdateis called and how often the physics engi
转载 2012-02-07 08:51:00
126阅读
2评论
Queries, in the form of SELECT statements, perform all the lookup operations in the database.
翻译 2022-02-18 09:43:29
54阅读
If you want to optimize your content for iOS, then it is beneficial for you tolearn more about iOS hardware devices.Alpha-TestingContrary to the desktop, alpha-testing (or use ofdiscard/clipoperation in pixel shader) is very expensive on iOS. If you can replace your alpha-test shader with alpha-blen
转载 2012-02-07 08:47:00
112阅读
2评论
Queries, in the form of SELECT statements, perform all the lookup operations in the database. Tuning these statements is a top priority, whether to achieve sub-second response times for dynamic web pages, or to chop hours off the time to generate huge ove.
翻译 2021-08-25 09:18:39
153阅读
Computer Systems A Programmer's Perspective Second Edition Modern compilers employ sophisticated algorithms to determine what values are computed in a
转载 2016-12-08 19:59:00
94阅读
Now that you have a well-designed view that responds to gestures and transitions between states, you need to ensure that the view runs fast. To avoid a UI that feels sluggish or stutters during playba
原创 2023-03-12 09:46:46
49阅读
8.8 Understanding the ...
转载 2015-08-27 18:02:00
48阅读
2评论
来源:http://phplens.com/lens/php-book/optimizing-debugging-php.php Last revised 28 Feb 2005. If you want to see what has changed, search for this date in this article. If you like this article, visit...
转载 2008-01-24 01:07:00
191阅读
2评论
使用batch, pipeline 一直是优化包含state machine 一致性协议的方法, 比如paxos, raft 等等, 这篇文章主要是提出了模型(cpu 利用率, 网络延迟, 网络带宽), 然后结合实际测试和仿真为我们提供了实际环境中如何使用batch, pipeline 的方法.首先看结论结论在同机房的场景中, 由于网络延迟较低, 即使在小包的情况下, 系统的瓶颈主要是是cpu,
原创 2021-03-04 23:44:13
108阅读
  • 1
  • 2
  • 3
  • 4
  • 5