[Opensource] 4.2 Discussion - Configuration Files

Larry Hamel larry at codeguild.com
Sat Jun 29 13:42:42 PDT 2002


it is a personal preference.  I don't have statistics on what is faster, though expresso config docs are relatively small, so I don't expect DOM to be significantly slower.  I'm willing to be shown otherwise :-)

during debugging, I find that figuring out what method of what class is responsible for a given SAX action is relatively difficult compared to the DOM handling.  with DOM, you read in the whole doc, and if there's some problem with syntax, you get those errors during the read/parse phase.  it seems more clear to me.  after that, taking action based on the DOM tree seems more easily debugged to me too.

again, it is a personal preference, just a memory of former debug sessions, so your mileage may vary.

larry

At 05:32 AM 6/29/2002, Michael Rimov wrote:
>At 11:57 AM 6/24/2002 -0700, you wrote:
>>a unified config file seems like a good idea to me.
>>
>>consider DOM-style handling (reading in entire doc, then doing actions) instead of SAX style (reacting to elements as they are read).
>
>Hi Larry!
>
>Can you humor me and explain what you're talking about here in that you're probably the first person that I've heard advocate DOM over SAX processing.  [Mainly due to speed].  I don't think you're saying it for convenience sake, so I'm really curious!! ;)
>
>I was actually thinking about using Commons-digester to read in the appropriate information.  Which I guess would have similar ramifications as what you just described.
>
>Anyway, I'd love to hear your thoughts on this.  Thanks!
>                                                -Mike
>
>_______________________________________________
>Opensource mailing list
>Opensource at jcorporate.com
>http://mail.jcorporate.com/mailman/listinfo/opensource
>Archives: http://mail.jcorporate.com/pipermail/opensource/




More information about the Opensource mailing list