Re: Optimising Variable to reduce instantiation overhead

Keats Kirsch <[email protected]> Mon, 13 Mar 2006 10:35:13 -0500
Newsgroups gmane.comp.java.webmacro.user
Message-ID <[email protected]>
Endre Stølsvik wrote:

>On Sun, 12 Mar 2006, Alex Twisleton-Wykeham-Fiennes wrote:
>
>| All,
>| 
>| more performance tweaks, this one to the org.webmacro.engine.Variable class.
>
>Excellent performance tuneup you're into, Alex!
>
>| - made the getVariableName() method check to see if _vname has been 
>| initialised, and if not then build the name before returning it.  This is now 
>| synchronized as it changes the state of the object.
>
>So?
>
>Is it shared across threads?
>  
>
The answer is yes, as we were so rudely reminded when the dynamic 
#include bug was discovered recently.  Compiled template instances are 
cached and may be shared by multiple threads.

Keats

>Regards,
>Endre
>
>  
>



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642