Re: [xml-dev] SAX parser for Netbeans [PERFORMANCE]
Petr Kuzel <[email protected]> Thu, 20 Mar 2003 14:55:25 +0100
| Newsgroups | gmane.comp.java.netbeans.modules.xml.devel |
|---|---|
| Organization | Sun Microsystems |
| Message-ID | <[email protected]> |
Mike Skells wrote:
> Hi,
> Sorry for the cross post but I was not sure which list to post this to.
>
> I presume that NB uses the standard SAX parser available with JDK
See org.openide.xml.XMLUtil test:
System.out.println("" + XMLUtil.createXMLReader(false, false).getClass());
System.out.println("" + XMLUtil.createXMLReader(false, true).getClass());
System.out.println("" + XMLUtil.createXMLReader(true, false).getClass());
System.out.println("" + XMLUtil.createXMLReader(true, true).getClass());
produces:
class org.apache.crimson.parser.XMLReaderImpl
class org.apache.crimson.parser.XMLReaderImpl
class org.apache.xerces.parsers.SAXParser
class org.apache.xerces.parsers.SAXParser
It means that it does not use standard JRE parser. It selects
proper one based on performance characteristics we measured
in past.
> Has anyone looked at using Piccolo http://piccolo.sourceforge.net/
> parser.
> The tests that I have seen indicate that it is significantly faster.
What about conformance?
> I dont know how to configure the sax parser for NB, and I dont have an
> environment that can test the performance, as it needs to be tested on
> the actual files that are frequently used.
>
> This could be an easy performance boost for all of NB couldn't it?
Possibly, the first start only. Then we turn almost all information
contained in XML into binary format caches.
Cc.