Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] URICache

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Wolfgang Hoschek <whoschek AT lbl.gov>
  • To: xom-interest AT lists.ibiblio.org
  • Subject: [XOM-interest] URICache
  • Date: Mon, 29 Nov 2004 14:45:15 -0800

I think the URICache in Verifier was very good the way you had it.

The lastet CVS improvement also checks for equals(). I think that's a step back when you look at it from the point of lock contention in multi-threaded environments. You need to keep any work inside static synchronized blocks as brief as possible to avoid lock contention becoming an issue. So I'd happily trade 10% performance improvement for strongly reduced lock contention, leading to much better scalability. The URIs are almost always constants anyway...

Wolfgang.





Archive powered by MHonArc 2.6.24.

Top of Page