I've been using the Xerces SAX parsers with good results, but I decided to try the built-in
Java 1.4 parsers. I was surprised at the awful parse times when I turn on validation. Here's one example:
Xerces 2.0.1:
Without Validation = .7 seconds
With Validation = 1.2 seconds
Java 1.4:
Without Validation = .3 seconds
With Validation = 22.7 seconds
I had heard that the Crimson parser upon which Java 1.4 is based was fast, which I found true without validation. But, with validation it's prohibitively slow for my application.
Is this consistent with others' results? Any chance something else not obvious is going on here?
Ron