From: Dmitriy S. <sha...@gm...> - 2011-03-05 03:17:53
|
On Fri, Mar 4, 2011 at 11:04 PM, Patrick Bosek <pat...@jo...>wrote: > > CompiledXQuery compiled = xqpool.borrowCompiledXQuery(broker, source); > > Who ever wrote the code I copied seemed to favor this method, but caused > the whole block of code to be much more complicated. Is getting a barrowed > CompiledXQuery considerably more efficient? Or is what I'm doing just fine? > Do I need to do anything special to destroy my CompiledXQuery to prevent > memory leaks with my current method? (I noticed a barrowed CompiledXQuery > can be returned) > That is compiled scripts cache method. Your scripts quite small and it can be that it compiling faster without cache. -- Dmitriy Shabanov |