Hi Jarkko Did you see the last email I sent to teh list. It appears to me that Velocity Objects are twice the size. My templates where 88K on disk for about 1k of text in a string and now the same guy is like 160K.
Any ideas? Thanks, Jason Tesser dotCMS Lead Development Manager 1-305-858-1422 2010/1/29 Jarkko Viinamäki-2 <[email protected]> > > 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] > >
