RE: JSP vs XSLT performance

"Schnitzer, Jeff" <[email protected]>
Newsgroups gmane.comp.web.maverick.general
Message-ID <[email protected]>
> From: Dave Hahn [mailto:[email protected]]
> 
> Has anyone compared performance of a 2-step JSP transformation with a
> similar 2-step XSLT transformation?  Being as JSPs are really servlets
> with a bunch of print and tag start/end calls, it would seem to have
an
> easier task than XSLT transformations.  Is it a wash?

Depends on the transformation.  A simple XSLT which takes SAX events in
and does little more than substitution of certain elements will be
blazingly fast.  A complicated XSLT which has to do a lot of buffering
and recursion could take hours.

In general for web usage, XSLT is not as fast as other templating
technologies.  This may or may not be a problem depending on your
expected traffic.

Jeff Schnitzer
[email protected]


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
[INVALID FOOTER]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.