• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Parser Pooling with JDOM

 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ,

I have heard that pooling the parser or using the same parser by making it a static object, can improve the performance. Is that true.

Iam using JDOM. When I get a XML string as input, Iam going to use SAXBuilder to create a Document. Does it make sense to reuse the SAXBuilder by creating one instance.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does it make sense?
Seems to me, that compared to all the other time consuming things involved in parsing XML, it is not worth the trouble. Maybe if you were sure that only one Thread could possibly be using the instance, and that Thread had to do several documents.
If you find any real benchmark tests that give a significant saving, I'd love to hear about it.
Bill
reply
    Bookmark Topic Watch Topic
  • New Topic