idea about a small performance improvement for webui

Oliver Lehmann oliver at FreeBSD.org
Thu May 7 16:17:38 EDT 2009


Hi,

after creating webui, I've had several other PHP projects and I noticed,
that when it comes to a hugh number of moduleWhatever classes, it is
better to not instantiate every class when index.php is called.

I've added a 2nd switch of $action before the original one and
instantiated only the classed needed for specific actions.

This saved me some time.

I've not evaluated yet how much this could save here but I can if you
want. If this is even easily possible since you now handing over
instantiated classes....

Just an idea which came to my mind looking at the code...

To get a better idea about what I'm talking:
http://cvs.laladev.org/index.html/laladev/lalaMoneyflow/index.php?rev=1.44&content-type=text/x-cvsweb-markup

Search for "if( $is_logged_in == 0 ) {".

-- 
 Oliver Lehmann
  http://www.pofo.de/
  http://wishlist.ans-netz.de/


More information about the tinderbox-list mailing list