Hi,
Property access with PHP5 is very slow compared to PHP4. The reason for
this is that property access must be verified every time. This seems
really unnecessary unless we're indirectly accessing properties.
Can/Should this be moved to zend_compile.c for everything that doesn't
rely on indirect reference?
-Sterling
"Programming today is a race between software engineers stirring to
build bigger and better idiot-proof programs, and the universe trying
to produce bigger and better idiots. So far, the universe is winning."
- Unknown
At 12:15 PM 5/24/2003 -0400, Sterling Hughes wrote:
Hi,
Property access with PHP5 is very slow compared to PHP4. The reason for
this is that property access must be verified every time. This seems
really unnecessary unless we're indirectly accessing properties.Can/Should this be moved to zend_compile.c for everything that doesn't
rely on indirect reference?
Which accesses are slower, $obj->prop, $this->prop or both?
Andi
At 19:15 24.05.2003, Sterling Hughes wrote:
Hi,
Property access with PHP5 is very slow compared to PHP4. The reason for
this is that property access must be verified every time. This seems
really unnecessary unless we're indirectly accessing properties.
It has to be verified each time, because we're typeless, and can't do stuff
like that in compile time. It's not related to indirect reference...
Zeev