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