hi mr jorgensen,        
        if i could reuse that DOMImpl cache... then i would be the
happiest man on this earth....
performance is greatly greatly improved.....i can handle lot of requests
in only 1 sec.

problem is that i need to be clarified on one thing:
for example, assume that i have 2 requests.
The requests contains exactly the same elements, but however the
VALUE of those elements are different.

<elem1>Marco</elem1> for the first (in reality they are little more complex)

<elem2>John</elem2> for the second

i assume that it won't make any sense to use the DOMCache..right??? 
on the other hand, it make no sense that a DOMCache is implemented if
none can use it sicne it's very seldom that you have exactly the same
request more than one time (with exactly the same elements' values)

can you clarify it little more=???

thanx in advance and regards
        marco


> -----Original Message-----
> From: ext Morten Jorgensen [mailto:[EMAIL PROTECTED]]
> Sent: 06. June 2001 15:42
> To: [EMAIL PROTECTED]
> Subject: Re: XSLTC DOMImpl class
> 
> 
> Marco,
> 
> It is of course possible to add a clearDOM() method to the DOMImpl
> class, but I doubt that it would help you much. The DOM takes long
> to build because the input document has to be parsed and because
> the DOMImpl$DOMBuilder inner class to populate the DOMImpl. The
> time spent instanciating the DOMImpl class is minute in comparison.
> I would rather focus on DOM caching (if feasible) and try to come
> up with a decent implementation of the DOMCache interface. Sun's
> alpha5 release and the latest Xalan release both contain a sample
> implementation (dom/DocumentCache) of the DOMCache interface, but
> it is not very flexible or efficient.
> 
> Morten
> 
> 
> [EMAIL PROTECTED] wrote:
> > 
> > hi all,
> >         is it possible to add a method  'clearDOM()' (if 
> someone hasn't
> > already done it) so that the DOMImpl class
> > can be reused all the time??
> > 
> > thanx in advanc and regards
> >         marco
> 

Reply via email to