jacekolszak/EggFramework — Issue #5: Page rendering optimizations
Author: jacekolszak
Created: 2011-10-19 23:08:19+00:00
State: open

Egg Framework uses Groovy language to render pages using the data provided by Java Controllers and helpers also written in Java language. Groovy is nice but sometimes slow, mostly because of its dynamic nature. But to speed up page rendering we can inform Egg Framework somehow about the types used For instance attributes passed to view from controller can be of any class and every method call can return different object of different class. But if in every action request application is passing instance of the same class then we can tell the framework to use a particular class type. In such case Egg Framework will be able to generate Groovy source code which will be faster (because code will be more strongly typed). We can also use things like Groovy++ to tell the Groovy compiler to use static typing.