[prev in list] [next in list] [prev in thread] [next in thread] 

List:       binarycloud-dev
Subject:    Re: [binarycloud-dev] coding standards
From:       Alex Black <enigma () turingstudio ! com>
Date:       2001-05-24 16:49:36
[Download RAW message or body]

> I asked Andrei here (PHP core developer) about this speed issue. He
> seems to think that echo should be marginally faster than breaking in
> and out of the HTML inline. He thinks this example is too short for a
> fair speed test (probably some state switching setup on the first time
> that won't happen on subsequent switches?), an atypical scenario. This
> is an extremely marginal difference, hardly a concern.

this is what I thought, that breaking, i.e.

?>
<html>
<?

does take a _tiny_ bit more time, but it is so small as to be negligible.
there's probably a similar difference between:

echo "text";
and
echo 'text';

(one is interpreted, the other is not)

---

_alex



--
alex black, ceo
enigma@turingstudio.com

the turing studio, inc.
http://www.turingstudio.com

vox+510.666.0074
fax+510.666.0093

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic