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: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to