On Sun, Jan 14, 2001 at 01:28:49PM +0100, Pavel Hlavnicka wrote:
> 
> - parsing the stylesheet is not so painful as it may seem

I saw this answer, but my stylesheets will be reeeally big. ;-)

> - yes, pre-parsing and caching data/stylesheets is a good idea
> 
> There were several threads (mostly private) on this topic. Caching is 
> little bit more general problem. Anyway at least the support of the 
> simplest model ("do not discard named buffer", or similar) would be very 
> fine.
> 
> Questions on this filed become nightmare for Tom :)
> 
> Have you got more detailed view of your needs?

I don't think I'd need caching inside of Sablotron (and it might even
become problem in my setup). I'd rather do the caching externally.

I thought about

- running parse on the stylesheet, that would return some object;
- then run SablotRunProcessor and instead of sheetURI pass in the
  stylesheet object;
- and with all subsequent runs, just run SablotRunProcessor with the
  stylesheet object.

Of course that assumes that the stylesheet object can be reasonably
reparated from the processor and that the data structure of its
implementation (or at least part of it) is stable enought, so that 
you could use it miltiple times without first run affecting the next
ones.

With this approach, Sablotron user would have the tool to decide if
they want to reuse the stylesheet or parse it again, and the caching
logic wouldn't need to be inside of Sablotron.

Sincerely,

-- 
------------------------------------------------------------------------
 Honza Pazdziora | [EMAIL PROTECTED] | http://www.fi.muni.cz/~adelton/
 .project: Perl, mod_perl, DBI, Oracle, auth. WWW servers, XML/XSL, ...
Petition for a Software Patent Free Europe http://petition.eurolinux.org
------------------------------------------------------------------------

Reply via email to