From: "Gili" <[EMAIL PROTECTED]> > Hi, > > It takes DOM4J approximately 900ms to parse a 5 line XML document off a > ByteInputStream *with validation disabled*. Is that normal? I'm expecting times under > 500ms .. more like 200ms.
It should be way less that 200ms! e.g. on my laptop (a 900MHz win2k machine with JDK1.3.1) I can run the performance.ParseLoop sample program parsing xml\web.xml (which is fairly small, 37 lines long), which parsers the file *100* times in 1020ms and that includes the startup overhead of classloading and warming up the parser, which is probably about half of that time. Running performance.ParseTest on the same file I get 561ms for the first run (mostly due to class loading) then an average of 3ms per parse after that. My guess is that 900ms is the time it takes to classload and initialise the parser - it should be pretty snappy after that. Incidentally the easiest way to boost XML parsing performance is to cache and reuse SAXReader instances (which cache and reuse the underlying SAX parser - often parsers take a while to warm up). James ------- http://radio.weblogs.com/0112098/ __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user