On 24/07/2008, at 11:47 PM, Ken Foskey wrote:
Rule 2. If performance is not enough profile.Questions about inlining are largely redundant in a modern computer program. Most of the time is spent waiting for harddisk access.
Inlining is a useful optimisation in itself, but it is most important because it enables a number of other optimisations (e.g. loop hoisting, constant folding, dead code elimination) that can speed up some code significantly.
And while I agree that the usual limiting factor in a modern desktop system is I/O, I think that people tend to pass off performance too easily these days. CPUs have certainly gotten a lot faster, but we're also manipulating so much more data these days that performance still matters, and all those micro-optimisations really do add up a lot. (I believe that compiling the WebKit HTML framework with -fstrict- aliasing gave them about a 6% speedup -- not bad for a single compiler switch. Combine that with a bunch of other optimisations that speed things up by 5%, and suddenly things are running 20-30% faster than before...)
-- % Andre Pang : trust.in.love.to.save <http://www.algorithm.com.au/>
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ coders mailing list coders@slug.org.au http://lists.slug.org.au/listinfo/coders