[htmltmpl] Speed
Brought to you by:
samtregar
From: Octavian R. <ora...@fc...> - 2005-12-02 18:11:08
|
Hi, I have some questions that I couldn't find an answer for: Which way of "inserting" vars in HTML::Template is the fastest? (or it doesn't make any difference?) $ht->param(var1 => $var1, var2 => $var2, var3 => $var3); or $ht->param(var1 => $var1); $ht->param(var2 => $var2); $ht->param(var3 => $var3); or another one? - Is the speed of H::T affected if using the following options? (incresed or decreased?) loop_context_vars => 1, die_on_bad_params => 0, global_vars => 1, - Is there a better way of defining the $ht object than defining it for every template needs to be parsed? For example, defining a general object in a separate package, then using it, giving it the filename of the template, and possible other options...? Could the speed be bigger? I could try to test all these things myself, but if not using them in a real work environment the results might not be relevant, so that's why I am asking you. Thank you very much. Teddy Teddy |