• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

validation performance penalty?

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Kathy Shkarlet
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!