[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Reusing XT instances
At 05:12 PM 1/31/00 +0000, you wrote:
> This much, I could take care of by locking the processor to > ensure sequential access.
> SAX says that a parser is reusable but not reentrant. To me, > this means that a SAX parser is not thread-safe, so in any > multi-threaded environment, you'd have to lock the parser. But this much I have control over. Again, it's crazy to lock the parser, much better to create a new instance for each parse.
> It's an interesting point that you brought up, however. It > could be worthwile to cache the Sheet. It'd make for a lot of rigamarole, but it might be > worth considering. > If you take a look at how Saxon does it in SaxonServlet, you'll see that it's not a lot of rigmarole at all, it's a dozen lines of code.
bob Robert Streich Calico Commerce rstreich@xxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|