Well, I think there are two cases of JSP you need to evaluate:

-JSP with pure scriptlets
-JSP with JSP tags

scriptlets will probably be almost as fast, I'm guessing. Tags could be much
slower, since the way that containers handle tags is different for each
container.

The main thing to remember is that with velocity, printing out the foo bean
property is just $foo, which is almost a direct map to vs.find("foo"). But
in JSP you have to do <ww:property value="foo"/> which requires the
container to handle the tag properly, then execute the tag code, and then
finally make the vs.find("foo") call. I think it's that extra work that must
be done (when using JSP tags in WW) that causes such a large overhead.

These are just thoughts at 11:46PM, please take them with a grain of salt :)

-Pat


----- Original Message -----
From: "Hani Suleiman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 12, 2003 7:41 PM
Subject: [OS-webwork] (somewhat OT) velocity vs jsp


> Most people seem to be in agreement that velocity templates are at
> least an order of magnitude faster that jsp pages, which to me seems a
> bit...odd. So I was wondering if anyone has good (small) examples of
> this being the case. Webwork examples don't count as good examples
> because they involve a lot more than just jsp vs velocity, and might
> well be due to differences in webwork's velocity stuff vs webwork's jsp
> taglib.
>
> So, can anyone take up the challenge, and prove to me that a velocity
> page that prints out some bean properties is faster than a jsp page
> which does the exact same thing? Maybe a very basic sample app that
> anyone can run to see for themselves?
>
> Hani
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by:Crypto Challenge is now open!
> Get cracking and register here for some mind boggling fun and
> the chance of winning an Apple iPod:
> http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
> _______________________________________________
> Opensymphony-webwork mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork



-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to