cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <cziege...@s-und-n.de>
Subject RE: [BUG] _members are not recycled in TraxTransformer
Date Mon, 16 Dec 2002 09:41:59 GMT


> -----Original Message-----
> From: Amir Rosen [mailto:amir@cti2.com]
> Sent: Monday, December 16, 2002 10:36 AM
> To: cocoon-dev@xml.apache.org
> Subject: [BUG] _members are not recycled in TraxTransformer
> 
> 
> Hi,
> 
> Just going through the code (2.0.4) i noticed that all the members
> in TraxTransformer begining with underscore (_useDeli, etc.)
> that are set in setup(..) are not recycled.
> 
> _useDeli = useDeli; etc. should be added in recycle()
> 
> 
In general you're right that instance variables should be reset
in recycle(). But in the case of the TraxTransformer this is not
necessary, because they are not reset in recycle() but in setup(),
the next time they are used. 
Adding those statement to recycle() is not wrong, but a little bit
slower.

Carsten 

Carsten Ziegeler 
Open Source Group, S&N AG


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


Mime
View raw message