Re: Why does Barracuda choose the way to parse the whole page (*ML) to a doc?
Xue-Feng Yang <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Message-ID | <[email protected]> |
Thanks for your reply. Please look my messages as follows: --- Jacob Kjome <[email protected]> wrote: > > Are you thinking of the LazyDOM feature of XMLC? Not exactly. I am more interested in Barracuda's framework. I like its architecture more than Struts. I want to make sure the performance comparison between these two. If Barracuda parses the whole doc tree, then they will perferm similarly. > That will make it so that > nodes don't get opened until they require > processing. Unfortunately, > Barracuda really doesn't make use of the > LazyDOM....at least not through > BTemplate. > What doc structure does Barracuda use? > Maybe you can explain a little more what you have in > mind. I like to parse the dynamic components such as BTable to some light weight data structure(not Node in w3c.dom) and squeeze all other nodes(static part) to a few idled data nodes(just some strings). Normally, most of the nodes will be squeezed into a few strings. So the doc tree will be much smaller. In LazyDOM, there is no such squeeze. I don't know if other "DOM" does this. However, the new data tree cannot be a w3c.dom Document. >You might also > want to post your question to the XMLC list since it > may be more relevant > there. > I will discuss this to there after I understand more about the parser used in Barracuda. > Jake > > At 12:14 PM 3/15/2003 -0500, you wrote: > >I am trying to understand Barracuda/XMLC right now. > I > >am wondering why XMLC parse the whole *ML to a > >Document. The doc tree is so big. Why don't just > parse > >to a smaller doc tree? So the perfomance will be > >improved significantly. > > > >______________________________________________________________________ > >Post your free ad now! http://personals.yahoo.ca > >_______________________________________________ > >Barracuda mailing list > >[email protected] > >http://barracudamvc.org/lists/listinfo/barracuda > ______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca