Actual numbers are difficult to give since the memory reduction benefit
depends on your templates. Basically in 1.6 the macro AST is stored only
once in memory and macro invocation calls use proxies instead of copying the
macro AST to the template.

So if you have something like

#macro(mymacro)

lots and lots of velocity syntax, kilobytes of text and other stuff here

#end

and then in your template you call

#mymacro()
#mymacro()
#mymacro()
... repeat this like 1000 times

Then the internal object size of the template in 1.6 is roughly just 1/1000
of the size it is in 1.5


Jason Tesser-2 wrote:
> 
> Would you be able to provide me numbers on memory reduction?  Test
> case results maybe?
> 

-- 
View this message in context: 
http://old.nabble.com/Making-Resource-Template-Serializable-tp27372143p27375103.html
Sent from the Velocity - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to