News for hackers. Stuff that matters.
Re:40 Tips for optimizing your php Code by some on Monday October 15, 2007 @10:35AM (#68045)
> 1. If a method can be static, declare it static. Speed improvement is by a factor of 4.

Wow!

 function Prime1() { ...calc one million prime numbers...}

 static function Prime2() { ...calc one million prime numbers...}
Prime2() will calculate the prime numbers 4 times faster then Prime1()? Cool.

There are no comments on this comment yet.