Now webwork2 for UI tags is using velocity. It means that for every ww:ui
tag there is velocity involved. With groovlet it is possible to easily
replace all velocity templates in just one day or two the most (at least I
hope :) ). And because grooblets are bytecode and they are cached by groovy
servlet there I expect some performance imrovment. And it is still possible
to use full pover of java language.


Initial benchmarks show that the Groovy script implementation is about 50% slower than the Velocity equivalent. It seems to be that the on-the-fly generated classes are slow. I see a lot of reflection going on in groovy.land.MetaClass. I'll ask the Groovy guys about it and it will probably be sorted out. If there's a difference between these classes and the pre-compiled ones, we should at least be able to switch to precompiled on deploy time. :)

And here's the answer:


On 20 Jan 2004, at 11:45, Mark Volkmann wrote:
/ Is it true that all method calls in Groovy scripts get converted to
/>/ bytecode
/>/ that makes the calls using reflection?
/
Today thats the case.

Going forward we should be able to use normal bytecode for statically typed code and bytecode generate MetaClass instances to avoid using reflection.

James




------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to