You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Robin Tanenbaum <ta...@us.ibm.com> on 2001/07/25 14:48:43 UTC

Use of reset instead of resetOrCopy when re-using parsers

When a parser is re-used the parseSomeSetup method in
org.apache.xerces.framework.XMLParser calls resetOrCopy().  ResetOrCopy is
so expensive, there is minimal benefit from reusing the parser.   I would
prefer to use the lighter weight reset() method provided in XMLParser.  Is
there any reason to avoid the reset() method?  Will it always safely
prepare the parser for re-use or are there circumstances which it should be
avoided?

Thanks,
Robin


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