Quoting Dave Glowacki ([EMAIL PROTECTED]):
> I then did some benchmarking and found that FreeMarker is
> at a minimum 5 times faster than WebMacro for their common
> operations. This seems to be due to all the introspection
> that WebMacro must perform.
I doubt it's the introspection, since that's only done the first time
you access an object. WM's performance would be theoretically the same
as JSP's. I haven't optimized it yet, since nobody has ever had a
performance problem.
My guess is you misconfigured your WebMacro. The defaults it ships with
has the template cache disabled in the WebMacro.properties file--turning
on the cache speeds WM up a factor of 10-20.
With the cache off, it reparses every template on every request.
> I can certainly see where WebMacro would be useful, especially
> in a JavaBean-rich environment where you don't want to
> write custom software to translate a Java object into a
> Vector or Hashtable, but my current project is all hand-coded
> servlets, so I certainly didn't want to pay the price for
> all that (unneeded by me) complexity.
I don't think there's a lot of unnecessary complexity. Most of the
complexity in WM relates to the pluggable nature of its components,
almost everything about it is dynamically loaded. The average WM
user doesn't have to care about any of this, but the
documentation doesn't yet make that clear, so you might feel
overwhelmed by it.
The introspection done by WM is equivalent to what is done by JSP, except
that WM is a bit more aggressive in extracting data from objects.
Justin
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html