Re: Structured Code vs. Performance

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Just to be curious:

when something like

if (defined('FOO') && FOO) {
  class foo{};
  function foo(){};
}

is parsed and FOO is not defined, will the code inside be parsed 
nevertheless? Or is anything inside skipped, leading to a (fragments of 
microseconds) faster handling of the code? Thus to go to my original 
question concerning speed: Would I save time with this construct as I would 
save it with skipping an include()?

Thomas 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux