Performance is not the first criteria to decide this on, if the loop is part of the PSM transformation algorithm it should go in the metafacades or scripthelper, if the loop is part of the actual code-generation it should go into the templates
For example looping through all the classes to check that everyone of them has at least one attribute, that would go into the Java code. Looping to render the same code fragment a couple of times, that goes into the template. My guess is that the processing performance is equivalent since velocity is written in Java it will delegate any #foreach statement to a collection iteration. hth -- Wouter > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:andromda-user- > [EMAIL PROTECTED] On Behalf Of Naik, Vikram > Sent: Tuesday, August 17, 2004 10:17 AM > To: [EMAIL PROTECTED] > Subject: [Andromda-user] Performance: Templates or Java Object > (ScriptHelper). > > Hello, > > If we have some processing to do, say some iteration over a collection or > something of that sort. Which is best artifact to place such code? > > Templates (vsl) or Java Object ( say ScriptHelper ) > > Please comment. > > Thanks & Regards, > Vikram Naik > > HSXéurç qV Òx > Pão JJp5 }j EZ"yííwJ)jw > > ?H& ]owgÇxËÚÖ q z m?X (~zw X bË?jwkgZÇ ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ Andromda-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/andromda-user
