Re: Property access slowness

From: Date: Sun, 25 May 2003 12:58:41 +0000
Subject: Re: Property access slowness
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-1983@lists.php.net to get a copy of this message
On Sun, 2003-05-25 at 04:24, Zeev Suraski wrote: > 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... > Ahh, yeah. Can we at least embed property information within the ce->properties hashtable? Currently accessing properties in PHP5 is *15%* slower. Denormalizing the properties_info, should give a nice performance gain. -Sterling > Zeev -- "C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg." - Bjarne Stroustrup

« previous php.internals (#1983) next »