[pLog-svn] Memory Usage pLog 1.0.1 / 1.1

Oscar Renalias oscar at renalias.net
Sat May 28 23:16:14 GMT 2005


This is really great stuff and I need to take a closer look at the  
figures when I've got some time. Your work on the reduction of the  
memory needed when everything's cached is also awesome!

So far, the following things popped in my mind as possible ways to  
improve the situation:

1) ADOdb seems to be *really* heavy (it's always the first entry in  
the uncached top 10!!) I just realised that we're using, what, 10% of  
its potential? Perhaps we could get rid of it and implement our own  
DB abstraction layer? We'd need to implement a mysql backend class  
and  a ResultSet class that maintains the same interface as ADOdb's  
ResultSet. Either that, or we trim the code and remove what we don't  
need.

2) If we get rid of ADOdb, we'd also get rid of adodb-time.inc.php

3) Try to get rid of TimeZone.class.php. It's got 124kb worth of  
timezones... and we don't use them. Why not remove all of them but UTC?

4) I don't see what we're loading class.phpmailer.php in the uncached  
DefaultBlogView. Perhaps this could be improved in your 1.1 branch?

5) I don't think that having each one of the objects in our code  
inherit from a base Object class is doing any good (other than being  
theoretically correct) We could also get rid of that if needed.

6) Start passing parameters around by reference more often... Even  
though, is somebody running plog on php5? I thought that starting  
with php5, all method calls were by reference (thus saving some  
memory) Can anybody confirm?

7) Try going through our API and removing all the stuff we don't  
need. I'm sure there's some :)

Oscar



More information about the pLog-svn mailing list