The major reason for (lack of) performance in Digester is the reflection/introspection first, then the pattern matching second. I re-implemented a minimal 'Digester' that does exact match on the current element, and has hard-coded type-safe rules, and the thing screams. I would assume that on that the parsing would then be the bottleneck.
I am not against starting a proposal for a digester-like entity that works with pull parsing, to be just another usage option as you say. You are welcome to submit a patch with an implementation. Scott > -----Original Message----- > From: Tal Lev-Ami [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 18, 2002 12:36 AM > To: 'Jakarta Commons Developers List' > Subject: RE: [Digester] XML Pull > > > Performance. Parsers like XPP are much faster than any > available SAX parser (at least that I know of). > See http://www-106.ibm.com/developerworks/xml/library/x-injava. > The performance comes at the expense of full standard > compliance but for most documents that isn't really > important. I don't think that XML Pull should replace SAX, > just be another usage option. I haven't done a benchmark of > the Digester it self, maybe the XML parsing part is not the > main problem, but I have a feeling it is. > > Tal Lev-Ami > Trivnet Ltd. > > -----Original Message----- > From: Scott Sanders [mailto:[EMAIL PROTECTED]] > Sent: Wed, September 18, 2002 1:27 AM > To: Jakarta Commons Developers List > Subject: RE: [Digester] XML Pull > > > Would there be a good reason for it, other than because we can? > > Scott > > > -----Original Message----- > > From: Tal Lev-Ami [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, September 17, 2002 5:13 AM > > To: Jakarta Commons Developers List (E-mail) > > Subject: [Digester] XML Pull > > > > > > Anybody tried to adapt the Digester to work with XML Pull > > (http://www.xmlpull.org)? > > It should be fairly easy to do and there are pretty fast > > parsers out there. > > > > Tal Lev-Ami > > Trivnet Ltd. > > > > -- > > To unsubscribe, e-mail: > > <mailto:commons-dev-> [EMAIL PROTECTED]> > > For > > additional commands, > > e-mail: <mailto:[EMAIL PROTECTED]> > > > > > > -- > To unsubscribe, e-mail: > <mailto:commons-dev-> [EMAIL PROTECTED]> > For > additional commands, > e-mail: <mailto:[EMAIL PROTECTED]> > > -- > To unsubscribe, e-mail: > <mailto:commons-dev-> [EMAIL PROTECTED]> > For > additional commands, > e-mail: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
