|
|
|
|
|
by some
6816 days ago
|
|
> 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. |
|