[pLog-svn] The use of constants

Mark Wu markplace at gmail.com
Mon Apr 23 05:47:26 EDT 2007


mmm...
 
If it is true, I think the "event definition list" & "dao cache defintion"
takes the most of the time. 
 
I don't like global variable, but it seems a good idea.
 
A wrapper class using static ...  mmmm ... I afriad it will takes longer
time then definition. Not sure.
 
Mark


  _____  

From: plog-svn-bounces at devel.lifetype.net
[mailto:plog-svn-bounces at devel.lifetype.net] On Behalf Of Ammar Ibrahim
Sent: Monday, April 23, 2007 5:25 PM
To: plog-svn at devel.lifetype.net
Subject: Re: [pLog-svn] The use of constants




On 4/23/07, Tsz Ming WONG <tszming at gmail.com> wrote: 

1. if you don't use constant, what will you use? hard code them into the
codes?


Global  variables, or in PHP5 static class variables.



2. the real slow down is include_once() AFAIK


true, this is a slow down as well. In my profiling tests. include_once took
so much time, but less than define()



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://limedaley.com/pipermail/plog-svn/attachments/20070423/df21adb3/attachment.htm 


More information about the pLog-svn mailing list