In an
interview article on InfoQ regarding the latest Struts 2.1 release it was mentioned that Struts now features the
Java Templates Plugin. It basically provides the functionality of the "simple" theme implemented directly in Java instead of
Freemarker. Musachy Barroso states in this interview that this makes the simple them tags render 4-5 times faster. The question for me is, do you "feel" the difference? Shall I avoid the Freemarker-based templates (at least as long as I use the simple theme)?
2 comments:
Short answer: yes. Long answer: yes, but don't forget that there are some limitations at the moment (overriding currently isn't supported, something that's being worked on). They are indeed a lot faster (my tests showed 4x improvements for pages with a lot of S2 UI tags).
You can also switch to complete Freemarker pages (so no S2 tag usage).
Thanks a lot for the answer!
Post a Comment