On Thu, 27 Jul 2000, Jauder Ho wrote:
> If there was somehow a way to cache say the template, leaving only the same
> dynamic portion uncached, it would certainly help things along quite a bit.
An improvement to the technique used by HTML Tree is to
"collapse" the non-dynamic portions of an HTML file into a
single text node. Given:
<H1>Heading</H1>
This is ordinary content.
It is <B>not</B> dynamic.
This line, <SPAN CLASS="sub_word">however</SPAN>, is.
You would ordinarily get:
Element Node: <H1>
Text Node: Heading
Text Node:
This is ordinary content.
It is
Element Node: <B>
not
Text node: dynamic. This line,
Element Node: <SPAN>
Text Node: however
Text Node: , is.
But, since the bulk of that is static, the portains that do
*not* contain elements having CLASS attributes could be
"collapsed" so that you get:
Text Node:
<H1>Heading</H1>
This is ordinary content.
It is <B>not</B> dynamic. This line,
Element Node: <SPAN>
Text Node: however
Text Node: , is.
i.e., the non-synamic HTML elements can be treated just like
plain text and passed through untouched. You could also devise
a more complicated data structure that would cache such nodes
separately.
- Paul
- RE: [is it time for something o... Kee Hinckley
- Re: [is it time for something o... Barry Hoggard
- Re: [is it time for something o... Perrin Harkins
- Re: [is it time for something o... Jauder Ho
- Re: [is it time for something o... Perrin Harkins
- Re: [is it time for something o... jbodnar
- Re: [is it time for something o... David Hodgkinson
- Re: [is it time for something o... Jauder Ho
- Re: [is it time for something o... Kip Hampton
- Re: [is it time for something o... Jauder Ho
- RE: [is it time for something o... Paul J. Lucas
- RE: [is it time for something o... Gerald Richter
- Re: [is it time for something o... Joshua Chamas
- Re: Templating system Honza Pazdziora
- RE: Templating system Darko Krizic
- RE: Templating system Matt Sergeant
- Re: Templating system David Hodgkinson
- Re: Templating system Drew Taylor
- Re: Templating system Andy Wardley
- Re: Templating system Drew Taylor
- Re: Templating system Perrin Harkins
