Re: [PHP] Code Bulk
Actually, the file in question is 3000 lines long, 99% in functions. Im trying to tell him that he may not see any speed ups in code execution. As long as I know Im right, its just the peace of mind when I go to bed tonight :) Martin Towell wrote: > any speed difference will be miniscule/negligible - is speed, to the > microsecond, important in this situation? > > -Original Message- > From: Gerard Samuel [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, March 27, 2002 11:23 AM > To: PHP > Subject: [PHP] Code Bulk > > > Im in a debate with someone else. > Basically were debating code bulk. > > This is just an example -> > > if (isset($run_this_code)) { > echo $this->run_this_code; > } > echo 'Finished'; > ?> > > Now, if I understand php correctly, the whole script gets parsed, but > since $run_this code isn't set, $this->run_this_code doesn't get > echoed/executed. What this other person is telling me that its more > effiecient for *him* to have -> > > echo 'Finished'; > ?> > > instead. > > The script is a general purpose script. Its not built for one person. > Some may use $run_this_code and some may not. So in taking out that bit > of code, all it does is save the parser, what fraction of a fraction of > a second?? > Im just looking for ammunition so I could go and shoot this guy down... :) > > Thanks for listening > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Code Bulk
any speed difference will be miniscule/negligible - is speed, to the microsecond, important in this situation? -Original Message- From: Gerard Samuel [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 11:23 AM To: PHP Subject: [PHP] Code Bulk Im in a debate with someone else. Basically were debating code bulk. This is just an example -> run_this_code; } echo 'Finished'; ?> Now, if I understand php correctly, the whole script gets parsed, but since $run_this code isn't set, $this->run_this_code doesn't get echoed/executed. What this other person is telling me that its more effiecient for *him* to have -> instead. The script is a general purpose script. Its not built for one person. Some may use $run_this_code and some may not. So in taking out that bit of code, all it does is save the parser, what fraction of a fraction of a second?? Im just looking for ammunition so I could go and shoot this guy down... :) Thanks for listening -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Code Bulk
Im in a debate with someone else. Basically were debating code bulk. This is just an example -> run_this_code; } echo 'Finished'; ?> Now, if I understand php correctly, the whole script gets parsed, but since $run_this code isn't set, $this->run_this_code doesn't get echoed/executed. What this other person is telling me that its more effiecient for *him* to have -> instead. The script is a general purpose script. Its not built for one person. Some may use $run_this_code and some may not. So in taking out that bit of code, all it does is save the parser, what fraction of a fraction of a second?? Im just looking for ammunition so I could go and shoot this guy down... :) Thanks for listening -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php