Hi all, I'd like to know if anybody has estimated performance penalty for using validating versus non-validating parser for both SAX and DOM versions? Is it similar in different implementations -sun and apache are the ones I'm most interested in? Kathy
Validating is a resource intensive process and you should expect to see a difference in performance when compared with non-validating parsing. The performace overhead depends among other things, on the size of the XML file being validated and the complexity of the structure. The difference is noticeable for Files greater than 1MB( or closer to, ) in size. Here is a perormance comparison matrix for various parsers tested with validation. Eventhough the data is quite old, I'm sure this will give you an idea about what to expect. Hope that helps, ------------------ Ajith Kallambella M. Sun Certified Programmer for the Java�2 Platform. IBM Certified Developer - XML and Related Technologies, V1.
Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
posted 18 years ago
These are interesting numbers, thank you, but I really am only interested in estimating validation overhead. I certainly could run tests myself, but maybe there's anybody who knows the results?