On Fri, May 27, 2011 at 18:26:42 +0530 , Ramprasad Prasad wrote:
> I have a requirement of generating  large number (> 100 thousand ) files
> from a single template by replacing the placeholders with respective values
> Currently I use Template-Toolkit, but is there a faster way ?
> 
> Since my template is just dumb template ( no IF , no FOR etc ) .. I just
> need a simple tool to replace the placeholders.
> 
> Any suggestions for a super fast placeholder replacement tool,
> 
> Or if I write this program in C will this be any faster

Do you have profiler (Devel::NYTProf; Devel::DProf is deprecated and
abandoned) runs and output showing that Template::Toolkit is your
bottleneck? If so, then yes, consider replacing your templating engine
after you've investigated ways of making it faster. If not, then you're
only guessing where the hotspots are, and programmers are notoriously
bad at guessing.

-- 
Chris Nehren           | Coder, Sysadmin, Masochist
Shadowcat Systems Ltd. | http://shadowcat.co.uk/

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to