RE: Barracuda Performance Questions
Xue-Feng Yang <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Christian, To be honest, I am not sure if I will work on this. It depends if it is worth to do. I will look at Barracuda's event model carefully before I make any decision. > So one possibility is to consider writing > a) a custom DOM Loader - to create a DOM from your > structure > b) a DOM Wrapper - to make your structure look/act > like a DOM > > If you were to do that then the Barracuda components > could work with your > "custom" DOM, which you could in turn use to > significantly reduce the number > of DOM nodes. I've thought of doing this very thing > for flat text documents, > thereby making it possible for Barracuda to > manipulate a text file or .rtf > format. The key is making the document in question > look like a DOM so that > Barracuda can work with it. > Assume that I will do something in Barracuda. I am sure that I will not go b). It makes too much unnecessary function calls between two data trees. It only can be a temporary solution. For a), a new dom implemetation has to be introduced in order to store squeezed data or deal with some text files as you mentioned. The dom operations should skip this part automatically. So it is unnecessary to use my data struture. From the current framework, I don't see anyway to use my data struture natually. Cheers, Xue-Feng ______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca