On Tue, 2007-07-24 at 09:57 -0400, Michael Glavassevich wrote:
> Synchronization is not an option in this case because there is a 
> > huge performance issue here. Please let me know if any way we can 
> > get read of this problem without using the Synchronization  block. 
> >  

Is your use-case, creates the DOM once and reads multiple times in a
concurrent access ? 

The thing is that DOM traversal is not thread safe when accessed
concurrently even though there are *no* writes.

If your use case is similar (no writes to XML), it may be worth
implementing a higher level read-only(immutable) Data tree that reads
only once from the DOM/SAX. 

Of course you should measure the performance benefits before deploying
the solution. 
 
-- 

-Prashant

Don't upload, just share : www.dekoh.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to