You&#39;re right Oscar. Anyhow, as of next week we&#39;ll start rewriting our system on LT1.3 . We will benchmark and profile quite a lot as we go, and we&#39;ll share our findings/fixes/features with you.<br><br>Thanks,<br>
&nbsp;&nbsp; Ammar<br><br><br><div><span class="gmail_quote">On 4/25/07, <b class="gmail_sendername">Oscar Renalias</b> &lt;<a href="mailto:oscar@renalias.net">oscar@renalias.net</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Just as I thought, you can&#39;t remove constants just because they&#39;re<br>&quot;slow&quot; without compromising code readability a *lot*. Would you rather<br>see switch() or if() statements where a variable is checked against
<br>proper constant names or against &quot;magic&quot; numbers? I suppose end users<br>and server admins don&#39;t really care that much but we as developers do<br>care about these things.<br><br>Now with all said, you can try to edit the file
<br>class/plugin/eventlist.properties.php and remove its contents. It<br>contains a bunch of constants that identify each one of the events<br>generated by the core, and they&#39;re not really needed if you&#39;re not<br>
using certain plugins. If any of you has the time to benchmark LT with<br>and without these constants defined, please let us know about the<br>results.<br><br>Oscar<br><br>On 4/23/07, Oscar Renalias &lt;<a href="mailto:oscar@renalias.net">
oscar@renalias.net</a>&gt; wrote:<br>&gt; How are you supposed to use global variables in method definition? As in:<br>&gt;<br>&gt; function myFunction( $param1 = MY_CONSTANT )<br>&gt;<br>&gt; Versus:<br>&gt;<br>&gt; function myFunction( $param1 = $can_I_use_a_global_variable_here )
<br>&gt;<br>&gt; Does that even work?? Or please clarify what you mean by &quot;global variables&quot;.<br>&gt;<br>&gt; Oscar<br>&gt;<br>&gt; On 4/23/07, Ammar Ibrahim &lt;<a href="mailto:ammar.ibrahim@gmail.com">ammar.ibrahim@gmail.com
</a>&gt; wrote:<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; On 4/23/07, Reto Hugi &lt;<a href="mailto:plog@hugi.to">plog@hugi.to</a>&gt; wrote:<br>&gt; &gt; &gt; Ammar Ibrahim wrote:<br>&gt; &gt; &gt; &gt; I don&#39;t like globals as well, they are a bad software engineering
<br>&gt; &gt; &gt; &gt; practice. But if they are faster, I don&#39;t care.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; well, we do. Else we wouldn&#39;t do OO programming. sometimes it&#39;s worth to<br>&gt; &gt; &gt; sacrifice speed over
<br>&gt; &gt;<br>&gt; &gt; What if the sacrifice is major? we could at least use global variables<br>&gt; &gt;<br>&gt; &gt; &gt; &gt; Benchmark and let us know :) but use PHP5<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Things you should know and keep in mind during the performance tests:
<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; - most or at least a significiant amount of users have php4 not php5.<br>&gt; &gt; &gt; that&#39;s why we provide backward compliance. we won&#39;t implement<br>&gt; &gt; &gt; improvements that brake the compliance.
<br>&gt; &gt;<br>&gt; &gt; of course.<br>&gt; &gt;<br>&gt; &gt; &gt; - we are not really interested in improvements other versions than<br>&gt; &gt; &gt; lifetype 1.2 as this is the version we support.<br>&gt; &gt;<br>&gt; &gt; I&#39;m migrating to 
1.2<br>&gt; &gt;<br>&gt; &gt; &gt; - inlude_once was replaced with lt_include in 1.2 to improve performance<br>&gt; &gt; &gt; (lt_include does not lead to file access operations on every call -<br>&gt; &gt; &gt; there might be more to it, but that&#39;s what I remember...)
<br>&gt; &gt; &gt; _______________________________________________<br>&gt; &gt; &gt; pLog-svn mailing list<br>&gt; &gt; &gt; <a href="mailto:pLog-svn@devel.lifetype.net">pLog-svn@devel.lifetype.net</a><br>&gt; &gt; &gt; <a href="http://limedaley.com/mailman/listinfo/plog-svn">
http://limedaley.com/mailman/listinfo/plog-svn</a><br>&gt; &gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; _______________________________________________<br>&gt; &gt; pLog-svn mailing list<br>&gt; &gt; <a href="mailto:pLog-svn@devel.lifetype.net">
pLog-svn@devel.lifetype.net</a><br>&gt; &gt; <a href="http://limedaley.com/mailman/listinfo/plog-svn">http://limedaley.com/mailman/listinfo/plog-svn</a><br>&gt; &gt;<br>&gt;<br>_______________________________________________
<br>pLog-svn mailing list<br><a href="mailto:pLog-svn@devel.lifetype.net">pLog-svn@devel.lifetype.net</a><br><a href="http://limedaley.com/mailman/listinfo/plog-svn">http://limedaley.com/mailman/listinfo/plog-svn</a><br></blockquote>
</div><br>