On Wednesday, October 23, 2002 2:25 AM,
Andy Clark <[EMAIL PROTECTED]> wrote:

> David Orriss Jr wrote:
>> From the looks of things, in a multi-threaded environment (like a servlet
>> engine), I would have to have a parser pool available, get a parser from
the
>> pool, do my work, and then return the parser to the pool.
>>
>> Sound reasonable??
>
> Yep, that's the way to do it. This would save you
> having to recreate parser objects each time. Xerces
> 1.x doesn't have the ability to cache grammars,
> though, so the grammars would need to be reloaded
> each time. But you improve performance in this
> respect by buffering the grammars in memory and
> using a custom entity resolver to let the parser
> retrieve them.

When you say 'grammar' I assume you mean the same thing as 'schema'.  Based
on that, if all parsers in the pool use the same schema, couldn't I just set
the schema at initialization of the parser?


--
David Orriss Jr.
[EMAIL PROTECTED]
http://www.davenet.net
http://www.codeskanks.com

Please email me if you want my ICQ/AIM/IM ID's.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to