<?xml version="1.0" encoding="windows-1252"?>
<node id="402865" title="Re: Efficiency/Speed question... (files or formats?)" created="2004-10-26 20:51:22" updated="2005-06-28 06:33:02">
<type id="11">
note</type>
<author id="125487">
jarich</author>
<data>
<field name="doctext">
I'm tempted to say neither.  In fact I do.  Don't do either of those two methods.
&lt;p&gt;
Designing, writing, testing and using your very own yet another templating system is hugely inefficient.  Likewise doing the same with formats doesn't help a lot either.
&lt;/p&gt;
&lt;p&gt;
If you need things to go &lt;b&gt;fast&lt;/b&gt; perhaps you should look at CGI::Fast or mod_perl.  That'll cut down the execution time a lot.
&lt;/p&gt;
&lt;p&gt;
Back to the question at hand, however.  I would recommend the good practice of using someone else's already well designed, written and tested templating system.  For example HTML::Template or Template::Toolkit depending on which one best suits your needs.
&lt;/p&gt;
&lt;p&gt;
Formats are almost a thing of the past (thankfully) and I can say with certainty that you'll appreciate the joys of using templates, sooner or later.  You want to [169991|use templates], it's a good habit to get into for when you later have to share a project with a graphic designer.
&lt;/p&gt;
&lt;p&gt;
Hope this helps,
&lt;/p&gt;
&lt;p&gt;
jarich
&lt;/p&gt;</field>
<field name="root_node">
402818</field>
<field name="parent_node">
402818</field>
</data>
</node>
