Jean-Michel Hiver writes: > My only problem deals with template caching. Currently Petal does the > following: > > * Generate events to build a 'canonical' template file > * Convert that template file to Perl code > ** Cache the Perl code onto disk > * Compiles the Perl code as a subroutine > ** Caches the subroutine in memory
I wonder how much code you would save if you wrote the templates in Perl and let the Perl interpreter do the above. Sorry, I know this doesn't help you answer your question, but by eliminating XML from the design, the debate about SAX vs XML::Parser would be irrelevant. Your code would run faster, and you would need fewer 3rd party APIs. Rob