[TYPO3-core] RFC: core speedup
Dmitry Dulepov
dima at spamcop.net
Mon Mar 27 13:47:07 CEST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi!
Bernhard Kraft wrote:
> Performane is always the negated sum of all slow code :)
Big +1. The less slow code we have - the better. Truly speaking,
performance was never strong side of typo3. If we enhance perfoemance,
it will make typo3 only better, never worse.
> At least in school we learned to use << instead of pow() if we do 2^x operations. The later
> one will even return a float in some cases (which of course is surely not wanted for bitmasks :)
Well, that's programming basics :)
Reminded me the story from our russian fantazy (Lukyanenko was the
author) where two great powerful wizards could not perform a very simple
spell that every beginner learn at their first year. Those wizards were
so great, so powerful, that simply forgot how to do that simple
first-year spell :)
> PS: Check the linux kernel for "<<" ... this is really a good source as bit shifting is often required
> when doing hardware stuff ... you will find docens of "<<" usage but no view of "pow(" ...
Because they consider performance as one of major things in the system.
And they are absolutely right.
Dmitry.
- --
"It is our choices, that show what we truly are,
far more than our abilities." (A.P.W.B.D.)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
iD8DBQFEJ9C7RVcYnKJ8N6kRAj6iAJ9e336LZyBqwA+UWtjfq31jBvh4RACeOwY2
deaERa1dcTGrsOhdHFKLA1A=
=OfYZ
-----END PGP SIGNATURE-----
More information about the TYPO3-team-core
mailing list