[dev] More profiling discoveries

Michael M Slusarz slusarz at mail.curecanti.org
Sun Nov 27 11:58:05 PST 2005


Util::addParameter() is slow.  On one page I profiled, over 3.1% of 
execution time was spent in there.  Wondering for Horde 4.0 if we 
should go the way of having a class for URLs to eliminate the need to 
have to complete parse the string everytime we add a parameter.

Also, if Util::addParameter() is slow then the PHP based json 
serializing code is a dinosaur.  Using the php extension was 
significantly faster.  In one page load of sidebar.php, using 
json_encode calls took about 0.17% of the execution time while the same 
data being passed through Horde_Serialize_JSON::encode() took about 
14.00%.  Looks like we should put some documentation in INSTALL and 
test.php asap on how to install this.

michael

_______________________________________
Michael Slusarz [slusarz at curecanti.org]


More information about the dev mailing list