cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <sylvain.wal...@anyware-tech.com>
Subject Re: ThreadSafe Parser
Date Wed, 31 Oct 2001 13:03:33 GMT


Sam Ruby a écrit :
> 
> Sylvain Wallez wrote:
> >
> > According to the JAXP spec, small synchronized blocks around calls to
> > SAXParserFactory.newSAXParser() and
> > DocumentBuilderFactory.newDocumentBuilder() should to the trick. This is
> > faster than pooling that involves much more code, including some
> > synchronized blocks.
> 
> My experience has been that pooling is considerably faster, at least with
> Xerces1.
> 
> - Sam Ruby
> 
I guess you're talking about pooling Parser instances, while I was
talking about Factories. You're right : the way to go is certainly
pooling Parser instances rather than pooling factories as we do it
today.

I'll change that, thanks for the hint.

Sylvain.
-- 
Sylvain Wallez
Anyware Technologies - http://www.anyware-tech.com

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message