From: Monte O. <mo...@is...> - 2001-05-24 13:28:03
|
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. Peter Bowyer wrote: > > At 08:57 PM 5/23/01 -0400, you wrote: > >we have an asp application in use at work.. it uses a lot of > >document.write"<table><tr><td>some data here</td></tr></table>" type of > >coding, which works like the php echo (as far as i can understand). i dont > >like this style at all, it makes the code hard to read.. (plus playing with > >the quotes is a serious pain in the rear end). then in the code there is a > >part where the programmer actually did it "my way" which means close code > >tags and do html as plain html and open code tags when theres code to spit > >out. my boss says this is bad and slows it down. > > Well according to the article at > http://www.newbienetwork.net/sections.php?op=viewarticle&artid=15 tests > have shown inline HTML to be twice as fast as using echo(). No results > given to back it up though... > > Peter. > > -oOo- > Maple Design - web design, hosting, domain names > http://www.mapledesign.co.uk > -oOo- > > _______________________________________________ > binarycloud-dev mailing list > bin...@li... > http://lists.sourceforge.net/lists/listinfo/binarycloud-dev -- Monte Ohrt <mo...@is...> http://www.ispi.net/ |