[pLog-svn] The use of constants

Tsz Ming WONG tszming at gmail.com
Mon Apr 23 03:27:29 EDT 2007


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

2. the real slow down is include_once() AFAIK

Best Regards,
tszming


On 4/23/07, Ammar Ibrahim <ammar.ibrahim at gmail.com> wrote:
> The other day I profiled LifeType, I'm using the 1.0.x branch. To my
> surprise most of the execution time of the script was spent on defining
> constants! I thought this is insane. One of my friends is a core PHP
> developer, I told him about my findings, and he wasn't surprised. he
> explained to me that define() is very slow. LifeType has so many constants,
> what do you think can be done with regards to this issue?
>
>
> - Ammar


More information about the pLog-svn mailing list