Re: Structured Code vs. Performance
| From: | Jochem Maas | Date: | Thu, 29 Nov 2007 13:54:43 +0000 |
| Subject: | Re: Structured Code vs. Performance | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-265226@lists.php.net to get a copy of this message | ||
news_yodpeirs@thoftware.de wrote:
> 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()?
no. regardless of whether that is actually true, still no.
it's crufty.
they have a word very suitable to this situation in dutch 'mierenneuken',
personally I'd stick with pretty girls.
>
> Thomas
>