<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3059" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=035094309-23042007><FONT face=&#26032;&#32048;&#26126;&#39636; 
color=#0000ff size=2>mmm...</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=035094309-23042007><FONT face=&#26032;&#32048;&#26126;&#39636; 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=035094309-23042007><FONT face=&#26032;&#32048;&#26126;&#39636; 
color=#0000ff size=2>If it is true, I think the "event definition 
list"&nbsp;&amp; "dao cache defintion" takes the most of the time. 
</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=035094309-23042007><FONT face=&#26032;&#32048;&#26126;&#39636; 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=035094309-23042007><FONT face=&#26032;&#32048;&#26126;&#39636; 
color=#0000ff size=2>I don't like global variable, but it seems a good 
idea.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=035094309-23042007><FONT face=&#26032;&#32048;&#26126;&#39636; 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=035094309-23042007><FONT face=&#26032;&#32048;&#26126;&#39636; 
color=#0000ff size=2>A wrapper class using&nbsp;static ...&nbsp; mmmm ... I 
afriad it will takes longer time then definition. Not sure.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=035094309-23042007><FONT face=&#26032;&#32048;&#26126;&#39636; 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=035094309-23042007><FONT face=&#26032;&#32048;&#26126;&#39636; 
color=#0000ff size=2>Mark</FONT></SPAN></DIV><BR>
<BLOCKQUOTE 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=zh-tw dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> plog-svn-bounces@devel.lifetype.net 
  [mailto:plog-svn-bounces@devel.lifetype.net] <B>On Behalf Of </B>Ammar 
  Ibrahim<BR><B>Sent:</B> Monday, April 23, 2007 5:25 PM<BR><B>To:</B> 
  plog-svn@devel.lifetype.net<BR><B>Subject:</B> Re: [pLog-svn] The use of 
  constants<BR></FONT><BR></DIV>
  <DIV></DIV><BR><BR>
  <DIV><SPAN class=gmail_quote>On 4/23/07, <B class=gmail_sendername>Tsz Ming 
  WONG</B> &lt;<A href="mailto:tszming@gmail.com">tszming@gmail.com</A>&gt; 
  wrote:</SPAN>
  <BLOCKQUOTE class=gmail_quote 
  style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">1. 
    if you don't use constant, what will you use? hard code them into the 
  codes?</BLOCKQUOTE>
  <DIV><BR>Global&nbsp; variables, or in PHP5 static class 
  variables.<BR></DIV><BR>
  <BLOCKQUOTE class=gmail_quote 
  style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">2. 
    the real slow down is include_once() AFAIK</BLOCKQUOTE>
  <DIV><BR>true, this is a slow down as well. In my profiling tests. 
  include_once took so much time, but less than 
define()<BR></DIV></DIV><BR></BLOCKQUOTE></BODY></HTML>