Re: long echo statement performance question

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

 



Well, Smarty's caching layer is very fast. Maybe not as fast as an
echo statement, but apparentely Frank was also interested in separate
logic from presentation, and a series of echo's is not the best
solution in my opinion. :-)
But the best solution depends of the context of the application, i agree.

2009/2/6 Eric Butera <eric.butera@xxxxxxxxx>:
> On Fri, Feb 6, 2009 at 12:15 PM, Bruno Fajardo <bsfajardo@xxxxxxxxx> wrote:
>> In my opinion, you would achieve better results using a template
>> engine, like Smarty (http://www.smarty.net/). In addition, your code
>> would be entirely separated from presentation in a elegant way.
>>
>> 2009/2/6 Frank Stanovcak <blindspotpro@xxxxxxxxxxx>:
>>> I'm in the process of seperating logic from display in a section of code,
>>> and wanted to make sure I wasn't treading on a performance landmine here, so
>>> I ask you wizened masters of the dark arts this...
>>>
>>> is there a serious performance hit, or reason not to use long, ie more than
>>> 30 - 40 lines, comma conjoined echo statments...
>>>
>>> echo 'blah', $var, 'blah', $var2,...ad nauseum
>>>
>>> ... to output mixed html and php var values?  If so could you refer me to a
>>> work around, or better way?
>>>
>>> Frank
>>>
>>>
>>>
>>> --
>>> 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
>>
>>
>
> In a thread about performance you suggest Smarty?  Really?  :D
>
> --
> http://www.voom.me | EFnet: #voom
>

-- 
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