Gossamer Forum
Home : Products : Gossamer Links : Discussions :

questions regarding template performance

Quote Reply
questions regarding template performance
Hi GT,

I have a question about when and where to run custom coding(plugin or template). The template codes allows for us to do something like:
<%Links::MyCustomCodes::mysubroutine(param1=>something,param2=>something)%> I love this and use it all the time, but lately since 3.x upgrades have wondered if this results in significant performance issues.

I have certainly identified performance problems with MY code between 2.x and 3.x, but this is more of a general performance question which is... Is there a performance issue when calling custom code through a template.

For example, it's possible to run the logic for entire program by using a template as a controller like this:
<%if somevalue%>
<%Links:myscript:runthisroutine()%>
<%include thistemplate.html%>
<%elsif someothervalue%>
<%Links:myscript:runthisotherroutine()%>
<%include thisothertemplate.html%>
<%else%>
<%Links:myscript:defaultroutine()%>
<%include defaulttemplate.html%>
<%endif%>

Is that as fast as running those if statements inside of a plugin perl script before processing the template?

thank you for any insight you can provide.

peace.
Subject Author Views Date
Thread questions regarding template performance klangan 3488 Feb 9, 2007, 12:08 AM
Thread Re: [klangan] questions regarding template performance
brewt 3436 Feb 9, 2007, 12:17 PM
Thread Re: [brewt] questions regarding template performance
klangan 3437 Feb 9, 2007, 12:34 PM
Thread Re: [klangan] questions regarding template performance
brewt 3432 Feb 9, 2007, 12:37 PM
Thread Re: [brewt] questions regarding template performance
klangan 3430 Feb 9, 2007, 12:49 PM
Post Re: [klangan] questions regarding template performance
brewt 3417 Feb 9, 2007, 1:18 PM