Reply to Re: [SMARTY] Performance problem with object assigned to template

Your name:

Reply:


Posted by Monte Ohrt on 09/22/05 00:37

If you remove the template tag, does the performance come back? If so,
the slowness is in the method call.

Todd wrote:

>Hi All,
>
>First let me say that I have been tinkering with Smarty a little bit over the
>last few weeks and I really like it. It's pretty slick.
>
>Pages were rendering very fast until I started using calling a method on an
>object that I assigned to my template by reference. I am pretty sure that is
>the only change I made before the slow down. Also, I have unit tests for the
>code behind that method and it runs fast.
>
>In my PHP code: $smarty->assign_by_ref('obj_name', $obj);
>
>In my template: {$obj_name->someMethod()}
>
>Now pages are rendering very slow (about 3 to 4 seconds!). Is this a known
>issue? What tips can you provide to help be track down the bottleneck.
>
>Thanks,
>Todd
>
>
>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация