xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
Re: [XOM-interest] Cache misses in namespace URI verification
- 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
-
[XOM-interest] Cache misses in namespace URI verification,
Elliotte Harold, 12/10/2004
- Thanks Elliot and Wolfgang -> Re: [XOM-interest] Cache misses in namespace URI verification, Robert Koberg, 12/10/2004
-
Re: [XOM-interest] Cache misses in namespace URI verification,
Wolfgang Hoschek, 12/10/2004
-
Re: [XOM-interest] Cache misses in namespace URI verification,
Elliotte Harold, 12/10/2004
-
Re: [XOM-interest] Cache misses in namespace URI verification,
Wolfgang Hoschek, 12/10/2004
-
Re: [XOM-interest] Cache misses in namespace URI verification,
Elliotte Harold, 12/10/2004
- Re: [XOM-interest] Cache misses in namespace URI verification, Wolfgang Hoschek, 12/10/2004
-
Re: [XOM-interest] Cache misses in namespace URI verification,
Elliotte Harold, 12/10/2004
-
Re: [XOM-interest] Cache misses in namespace URI verification,
Wolfgang Hoschek, 12/10/2004
- Re: [XOM-interest] Cache misses in namespace URI verification, Elliotte Harold, 12/10/2004
-
Re: [XOM-interest] Cache misses in namespace URI verification,
Elliotte Harold, 12/10/2004
- Re: [XOM-interest] Cache misses in namespace URI verification, Wolfgang Hoschek, 12/10/2004
-
Re: [XOM-interest] Cache misses in namespace URI verification,
Elliotte Harold, 12/10/2004
Archive powered by MHonArc 2.6.24.