in reply to developing a template system

Take a look at HTML::Template::JIT. It compiles HTML::Template templates into C programs. It should be much faster than the one you just wrote and supports most of the HTML::Template options.

Replies are listed 'Best First'.
Re^2: developing a template system
by tinita (Parson) on Aug 13, 2005 at 00:06 UTC
    yes, I've had a look on it already, but thanks.
    it also doesn't support all HTML::Template options, and it's about 4-8 times faster, while HTC was about 5 times faster in my tests. not too much faster in comparison.
    and it has the limitations of HTML::Template I mentioned before and in my manpage.
      I'd like to see your tests. It's hard to see how your perl one could be faster, unless it is leaving out significant pieces of functionality.
        ok, the test script is right there in the package (t/test.pl, t/test.html). I updated some minutes ago it because the version that was in the package wasn't runnable.
        ok, it's not a complete test of all functionalities, but you can have a look at it and maybe tell me what I'm missing.

        update: i updated the test.pl script again, so now everybody should see quickly what it is doing. before it was just a big mess...

        update2: here is the test script with additional testing of H::T::JIT: http://www.tinita.de/projects/perl/modules/HTC_test_pl.txt
        when I run it HTC is more than 3 times faster than H::T::JIT, so I *must* be doing something wrong...