OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   RE: [xml-dev] Problem parsing XML file with Xerces-J

[ Lists Home | Date Index | Thread Index ]

Which bit is slow?

//get XML from remote URL  ;
//remove DTD reference
//parse response XML (using DOM API)
//get specific nodes to read.
500*//extract something ;)  from current node
500*//send a response to a remote URL     
// cause delay - this is the polling interval

You have a delay that you comment as an interval; you may want to adjust the delay for the processing time so it is more equal to the desired interval.

You also are establishing 500 http connections, which will cost in time. You may want to (if it's to the same endpoint) only send one bulkier message, or to enqueue these and let a pool of threads process them outside of the polling loop (depending whether timeliness of polling or posting has higher priority).


This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS