Customizing SMF > SMF Coding Discussion

Question about sharing tables

<< < (4/4)

[Unknown]:
I'm talking about using them not assigning them, since use is going to happen more than assignment in many cases.

-[Unknown]

Christian Land:

--- Quote from: [Unknown] on April 22, 2004, 05:48:24 PM ---I'm talking about using them not assigning them, since use is going to happen more than assignment in many cases.

--- End quote ---

Take a look at: http://www.php-mag.net/itr/online_artikel/psecom,id,546,nodeid,114.html

I only had very few time to check it, but according to their benchmark-scripts, using constants is 1.5 times faster on my machine than using global variables...

[Unknown]:
> The first test measures whether accessing constants or global variables is faster. In PHP 4.2.3, globals were faster. In PHP4.3.3 and PHP5b4, the reverse is true.

I'm not sure but I think I tested it in 4.3.1.

-[Unknown]

Navigation

[0] Message Index

[*] Previous page

Go to full version