[pLog-svn] r4864 - in plog/branches/lifetype-1.2: class/action class/dao class/data class/locale class/view locale locale/admin

Oscar Renalias oscar at renalias.net
Fri Feb 23 16:48:36 EST 2007


In case you were wondering, the reason for this change is purely to  
save some memory. And the results are quite promising.

PHP's get_peak_memory_usage() reports that the front page of my test  
blog (loaded with data from lifetype.net) uses 16162248 bytes without  
this change and 12531052 bytes after this change, in both cases  
starting with a clean cache. When data has already been cached, the  
gains are nearly unnoticeable but I'd say that this is a good  
improvement anyway.

On 23 Feb 2007, at 23:37, oscar at devel.lifetype.net wrote:

> Author: oscar
> Date: 2007-02-23 16:37:52 -0500 (Fri, 23 Feb 2007)
> New Revision: 4864
>
> Added:
>    plog/branches/lifetype-1.2/class/locale/bloglocale.class.php
>    plog/branches/lifetype-1.2/locale/admin/
>    plog/branches/lifetype-1.2/locale/admin/locale_en_UK.php
> Modified:
>    plog/branches/lifetype-1.2/class/action/blogaction.class.php
>    plog/branches/lifetype-1.2/class/action/rssaction.class.php
>    plog/branches/lifetype-1.2/class/dao/bloginfo.class.php
>    plog/branches/lifetype-1.2/class/dao/ 
> daocacheconstants.properties.php
>    plog/branches/lifetype-1.2/class/data/plogcalendar.class.php
>    plog/branches/lifetype-1.2/class/locale/locale.class.php
>    plog/branches/lifetype-1.2/class/locale/locales.class.php
>    plog/branches/lifetype-1.2/class/view/blogview.class.php
>    plog/branches/lifetype-1.2/class/view/defaultview.class.php
>    plog/branches/lifetype-1.2/class/view/errorview.class.php
>    plog/branches/lifetype-1.2/locale/locale_en_UK.php
> Log:
> Added support for split locales: a much smaller one to be used in  
> the front-end and the bigger one to be used in admin.php. This  
> feature has been built so that BlogInfo::getLocale() and  
> Locales::getLocale() behave as expected so far, while the new  
> methods BlogInfo::getBlogLocale() and Locales::getBlogLocale()  
> return an object of type BlogLocale which only contains the smaller  
> bit of the locale.
>
> Right now only the English locale has been split, and it will take  
> some time until we have managed to get all strings into the right  
> place. Therefore there is no need to hurry yet with splitting all  
> other available locales.


More information about the pLog-svn mailing list