On Wed, 17 Jul 2002, Jean-Michel Hiver wrote:

> 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
>
> Cache is kept fresh using the template file mtime() information.
>
> If I had a SAX event parser, then maybe caching could be a bit
> troublesome?

If you could skip the whole "perl code" part you could use
XML::Filter::Cache (a SAX caching filter) as a cache rather than worrying
about a built in one.

Sorry for getting off topic for this list though. Just trying to pass
around the SAX kool aid ;-)

-- 
<!-- Matt -->
<:->Get a smart net</:->

Reply via email to