[Gregarius-docs] Busy!

Sameer D'Costa sameerslists at gmail.com
Thu Sep 22 18:47:22 CEST 2005


Hi Marco,

Good luck with your new job. My holidays get over on Sunday and then
after that school starts for the Autumn Quarter. So I am going to get
quite busy. I got a shiny new book on optimizing MySQL to see how to
implement multiple users in gregarius. I hope I have time to read it :)

The thing that has been bothering me is the theme engine. This is the
biggest bottle neck in the code for me. I used the profiler class to
check. The problem occurs because of the require('...item.php') every
time an item is rendered. These are expensive because php has to read the
file from the disk and compile it *every* time it encounters that. So on
the front page (index.php) it is doing that 100 times. I moved the
contents of item.php file in the default theme into a function and it
reduced the execution time of the front page from 2 seconds to 1 second.
(I have a slow server :) ) Do you have any thoughts about how we could
reduce the number of require statements? 

Sameer


On Thu, Sep 22, 2005 at 06:14:25PM +0200, Marco Bonetti wrote:

> Date: Thu, 22 Sep 2005 18:14:25 +0200
> From: Marco Bonetti <mbonetti at gmail.com>
> To: gregarius-docs at sinless.org
> Subject: [Gregarius-docs] Busy!
> Reply-To: Marco Bonetti <mbonetti at gmail.com>, gregarius-docs at sinless.org
> 
> Hello,
> 
> just a quick note to say I'm sorry for being a bit absent as of
> lately. I'm very busy working on the current project at my day job,
> another project for a new company which I'm going to start working for
> soon, the process of resigning from my current job, and all that jazz.
> 
> I've also been working on the rating system. The new implementation is
> based on real forms (and this hack:
> http://www.gamingheadlines.co.uk/wod/formstyle/index.html )
> 
> I think the whole rating and amphetarate business is going to be
> handled in a single huge plugin.
> 
> So much for my status report!
> And how are you guys?
> 
>  -m
> 
> _______________________________________________
> Gregarius-docs mailing list
> Gregarius-docs at sinless.org
> http://sinless.org/mailman/listinfo/gregarius-docs


More information about the Gregarius-docs mailing list