Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Cache misses in namespace URI verification

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Harold <elharo AT metalab.unc.edu>
  • To: Wolfgang Hoschek <whoschek AT lbl.gov>
  • Cc: xom-interest <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] Cache misses in namespace URI verification
  • Date: Fri, 10 Dec 2004 15:38:25 -0500

Wolfgang Hoschek wrote:


Because everything in nu.xom.Verifier is static. All threads are contending for the same shared lock in the URICache, irrespective of whether they work in the same or different documents. If you have 100 threads, each rapidly executing URICache.contains() millions of times you can get a lot of lock contention and serious performance degradation.


That's a separate issue. My question is if you're parsing ten different documents at a time, each of which uses the same three or four namespaces, if the namespace URIs aren't interned across parses, won't they tend to keep knocking each others namespaces out of the cache? Even though they're really the same URIs?

--
Elliotte Rusty Harold elharo AT metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim




Archive powered by MHonArc 2.6.24.

Top of Page