Re: OGNL performance detrimental to Struts 2

2007-03-24 Thread Dave Newton
--- Musachy Barroso <[EMAIL PROTECTED]> wrote: > We could enable the cache when devMode is false. +1, at least as default behavior. d. Be a PS3 game guru. Get your game face on with the latest PS3 news and p

Re: OGNL performance detrimental to Struts 2

2007-03-24 Thread Musachy Barroso
Yeah, I still need to confirm nothing is broken in core, except the tooltips which I know are not working. By the way Dojo 0.4.2 was released, how was the upgrade made last time? Drop the dojo files and add the new ones? musachy On 3/24/07, Ted Husted <[EMAIL PROTECTED]> wrote: As I believe th

Re: OGNL performance detrimental to Struts 2

2007-03-24 Thread Ted Husted
As I believe the Ajax/Dojo plugin is ready, if we could mop-up the portlet plugin ticket, we could apply the caching patch to the HEAD, and get started on the 2.1.x series. Having AJAX as a plugin rather than a theme will also benefit many people :) -Ted. On 3/24/07, Tom Schneider <[EMAIL PROTE

Re: OGNL performance detrimental to Struts 2

2007-03-24 Thread Musachy Barroso
We could enable the cache when devMode is false. musachy On 3/24/07, Tom Schneider <[EMAIL PROTECTED]> wrote: Well, there is a small risk of things being cached and a developer relying on the behavior of not caching the templates. However, I think those cases will be rare and it would benefit

Re: OGNL performance detrimental to Struts 2

2007-03-24 Thread Tom Schneider
Well, there is a small risk of things being cached and a developer relying on the behavior of not caching the templates. However, I think those cases will be rare and it would benefit many people. Tom Musachy Barroso wrote: Any reason why this shouldn't be applied on the 2.0 branch instead of

Re: OGNL performance detrimental to Struts 2

2007-03-24 Thread Musachy Barroso
Any reason why this shouldn't be applied on the 2.0 branch instead of 2.1? musachy On 3/24/07, Tom Schneider <[EMAIL PROTECTED]> wrote: I wrote a struts2 caching implementation of the freemarker templates: https://issues.apache.org/struts/browse/WW-1661 Freemarker wouldn't know how to cache t

Re: OGNL performance detrimental to Struts 2

2007-03-24 Thread Tom Schneider
I wrote a struts2 caching implementation of the freemarker templates: https://issues.apache.org/struts/browse/WW-1661 Freemarker wouldn't know how to cache the templates as well as struts2 does since we know how the templates are being used and whether or not it is safe to cache them. Tom C

Re: OGNL performance detrimental to Struts 2

2007-03-24 Thread Claus Ibsen
>From the performance tuning page: Copy the /template directory from the Struts 2 jar in your WEB_APP root. Freemarker fails to properly cache templates when they are retrieved from the classpath. Copying them to the WEB_APP root allows Freemarker to cache them correctly. Freemarker looks at th

Re: OGNL performance detrimental to Struts 2

2007-03-24 Thread Ted Husted
To avoid such long threads in future, probably it makes sense to add some performance benchmark page in struts examples distribution. Would it be possible to contribute the test page you've already started? We have a ticket open. * https://issues.apache.org/struts/browse/WW-1560 I'm also atta

Re: OGNL performance detrimental to Struts 2

2007-03-24 Thread Vlad
When I see OGNL classes in exceptions stack trace, I believe it is not as fast as 2+2. But I have never thought to replace tags with <%= %> scriplets. performance is enough for me, for now. WebWork form tags could be really slow. After I have moved templates out of webwork.jar to WEB-INF/temp

Re: OGNL performance detrimental to Struts 2

2007-03-23 Thread Brian Pontarelli
Not sure what the profiler data looks like but if the profiler is indeed stating that OGNL code is taking the most processor time and it is indeed 5-10 times slower, than the performance tuning page doesn't look like it will address these issues. However, it could simply be the profiler data is

Re: OGNL performance detrimental to Struts 2

2007-03-23 Thread Ted Husted
Has anyone rerun these type of benchmarks in light of the performance tuning page? * http://struts.apache.org/2.x/docs/performance-tuning.html -Ted. On 12/11/06, dice <[EMAIL PROTECTED]> wrote: By my own benchmarking I am finding Struts 2 somewhere between 5-10 times slower than Struts 1 in J

Re: OGNL performance detrimental to Struts 2

2007-01-01 Thread Tom Schneider
Tonight I was looking at abstracting away OGNL from xwork. (I was pretty far before I gave up for the night, about a half dozen OGNL references in xwork that I'll have to look at a little closer) So I took a look at what it would take to integrate MVEL. First, the lack of javadoc is a little

Re: OGNL performance detrimental to Struts 2

2006-12-29 Thread Martin Cooper
From: David H. DeWolf [mailto:[EMAIL PROTECTED] On Behalf Of David H. DeWolf Sent: Monday, December 18, 2006 6:32 PM To: Struts Developers List Subject: Re: OGNL performance detrimental to Struts 2 I double dare you :) Don Brown wrote: > Well, I dare you then: http://issues.apache.org/struts/

RE: OGNL performance detrimental to Struts 2

2006-12-29 Thread Shekhar Yadav
by hook or crook we have to solve the performance issue.. -Original Message- From: David H. DeWolf [mailto:[EMAIL PROTECTED] On Behalf Of David H. DeWolf Sent: Monday, December 18, 2006 6:32 PM To: Struts Developers List Subject: Re: OGNL performance detrimental to Struts 2 I double dare

Re: OGNL performance detrimental to Struts 2

2006-12-26 Thread Jessek
- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/OGNL-performance-detrimental-to-Struts-2-

Re: OGNL performance detrimental to Struts 2

2006-12-26 Thread Ted Husted
Did you try using the simple theme with Struts 2.0.1 in the benchmarks? -Ted. On 12/11/06, dice <[EMAIL PROTECTED]> wrote: By my own benchmarking I am finding Struts 2 somewhere between 5-10 times slower than Struts 1 in JSP rendering. JProfiler is telling me OGNL is the bottleneck.

Re: OGNL performance detrimental to Struts 2

2006-12-18 Thread David H. DeWolf
I double dare you :) Don Brown wrote: Well, I dare you then: http://issues.apache.org/struts/browse/WW-1566 :) Don Chris Brock wrote: Don't dare me. I'm pretty ambitious. I wrote MVEL 1.0 in three days. Don Brown-2 wrote: I'd like it to be possible for a Struts developer to swap in a n

Re: OGNL performance detrimental to Struts 2

2006-12-18 Thread Don Brown
Well, I dare you then: http://issues.apache.org/struts/browse/WW-1566 :) Don Chris Brock wrote: Don't dare me. I'm pretty ambitious. I wrote MVEL 1.0 in three days. Don Brown-2 wrote: I'd like it to be possible for a Struts developer to swap in a new EL, perhaps MVEL, if they didn't li

Re: OGNL performance detrimental to Struts 2

2006-12-18 Thread Chris Brock
t;>>>> >>>>>>> >>>>>>>> >>>>>>> >>>>>>>> >>>>>>> name="nestedBean.attribute2"/> >>>>>>> >>>>>>> &g

Re: OGNL performance detrimental to Struts 2

2006-12-18 Thread Don Brown
I'd like it to be possible for a Struts developer to swap in a new EL, perhaps MVEL, if they didn't like OGNL for some reason. If you can create a patch to make that happen, I would consider it my early Christmas present :) Don Chris Brock wrote: Why do you think it would be so terribly dif

Re: OGNL performance detrimental to Struts 2

2006-12-18 Thread Ted Husted
Me too. On 12/18/06, Don Brown <[EMAIL PROTECTED]> wrote: If you can find a way to completely replace OGNL by MVEL, I'd be very interested to see it. :) Don Chris Brock wrote: > I think the problem is that the Tapestry solution is simply a property > accessor package, which doesn't really meet

Re: OGNL performance detrimental to Struts 2

2006-12-18 Thread Chris Brock
;>>> >>>>>> >>>>> >>>>> name="nestedBean.attribute5"/> >>>>> >>>>>> >>>>> >>>&g

Re: OGNL performance detrimental to Struts 2

2006-12-18 Thread Don Brown
If you can find a way to completely replace OGNL by MVEL, I'd be very interested to see it. :) Don Chris Brock wrote: I think the problem is that the Tapestry solution is simply a property accessor package, which doesn't really meet the needs of the established WebWork community which relies o

Re: OGNL performance detrimental to Struts 2

2006-12-18 Thread Jessek
assist. > I think it's performance and flexibility speak for itself: > http://wiki.mvflex.org/index.php?title=MVFLEX_Expression_Language > -- View this message in context: http://www.nabble.com/OGNL-performance-detrimental-to-Struts-2-tf2804655.

Re: OGNL performance detrimental to Struts 2

2006-12-18 Thread Chris Brock
>> > >>> > Ted Husted-3 wrote: >>> > >>> >> On 12/13/06, Ian Roughley <[EMAIL PROTECTED]> wrote: >>> >> >>> >>> Do you have the performance numbers that

Re: OGNL performance detrimental to Struts 2

2006-12-18 Thread Ted Husted
> >> >> * >> >> >> http://javajmc.blogspot.com/2006/10/webwork-and-stripes-simple-performance.html >> >> >> >> (be sure to read to the *end* of the commnets). >> >> >> >> We might want to come up with

Re: OGNL performance detrimental to Struts 2

2006-12-18 Thread Jessek
ripes-simple-performance.html >> >> >> >> (be sure to read to the *end* of the commnets). >> >> >> >> We might want to come up with a set of test pages that thorougly >> >> exercise the core tags, so that we can run our own direct comparison

Re: OGNL performance detrimental to Struts 2

2006-12-17 Thread Don Brown
I wrote a simple Struts 2 TemplateEngine that renders tags in pure Java, as opposed to the Freemarker that is used currently. I'm seeing performance improvements between 3 and 4 times faster than the old tags. This engine is based on the design I layed out previously [1]. It is better suited to

Re: OGNL performance detrimental to Struts 2

2006-12-14 Thread Ted Husted
Speaking of tickets, there's one already open * http://issues.apache.org/struts/browse/WW- -Ted. On 12/14/06, Don Brown <[EMAIL PROTECTED]> wrote: Very interesting... I wonder how much of the performance hit was due to Freemarker and how much OGNL. Could you package this application in a war

Re: OGNL performance detrimental to Struts 2

2006-12-13 Thread Don Brown
Very interesting... I wonder how much of the performance hit was due to Freemarker and how much OGNL. Could you package this application in a war and attach it to a JIRA ticket? I'd love to have it for future comparisons. Don dice wrote: They are my stats Ted. The stats are posted below al

Re: OGNL performance detrimental to Struts 2

2006-12-13 Thread dice
gt; -Ted. > > -- View this message in context: http://www.nabble.com/OGNL-performance-detrimental-to-Struts-2-tf2804655.html#a7865392 Sent from the Struts - Dev mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: OGNL performance detrimental to Struts 2

2006-12-13 Thread Jessek
direct comparisons >> > of S1, S2, et al. >> > >> > Of course, the peformance is the still same as WebWork 2, which is >> > driving some serious applications. We also know exactly where lies the >> > bottleneck. We need to fix or replace OGNL. >&g

Re: OGNL performance detrimental to Struts 2

2006-12-13 Thread Bob Lee
us applications. We also know exactly where lies the > bottleneck. We need to fix or replace OGNL. > > -Ted. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this mess

Re: OGNL performance detrimental to Struts 2

2006-12-13 Thread Jessek
IL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/OGNL-performance-detrimental-to-Struts-2-tf2804655.html#a7856772 Sent from the Struts - Dev mailing list archive at Nabble.com. --

Re: OGNL performance detrimental to Struts 2

2006-12-13 Thread Jessek
t; don't >> > have time to rewrite OGNL myself.) >> > >> > In the mean time, we wrote a custom version of OgnlValueStack. >> > >> >> -- >> View this message in context: >> http://www.nabble.com/OGNL-performance-detrimental-to-Struts-2-tf2

Re: OGNL performance detrimental to Struts 2

2006-12-13 Thread Ted Husted
On 12/13/06, Ian Roughley <[EMAIL PROTECTED]> wrote: Do you have the performance numbers that you can share? I'd really be interested in them. There are some interesting numbers here * http://javajmc.blogspot.com/2006/10/webwork-and-stripes-simple-performance.html (be sure to read to the *e

Re: OGNL performance detrimental to Struts 2

2006-12-13 Thread Ian Roughley
Do you have the performance numbers that you can share? I'd really be interested in them. Also, since you've considering JSF and performance is the deciding faactor, do you have the performance information between s1, s2 and JSF? /Ian dice wrote: The custom OGNLValueStack made little dif

Re: OGNL performance detrimental to Struts 2

2006-12-12 Thread Bob Lee
place it with JSP-EL? (I > don't > have time to rewrite OGNL myself.) > > In the mean time, we wrote a custom version of OgnlValueStack. > -- View this message in context: http://www.nabble.com/OGNL-performance-detrimental-to-Struts-2-tf2804655.html#a7847866 Sent from

Re: OGNL performance detrimental to Struts 2

2006-12-12 Thread dice
> -- View this message in context: http://www.nabble.com/OGNL-performance-detrimental-to-Struts-2-tf2804655.html#a7847866 Sent from the Struts - Dev mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTEC

Re: OGNL performance detrimental to Struts 2

2006-12-12 Thread Jessek
> > -- View this message in context: http://www.nabble.com/OGNL-performance-detrimental-to-Struts-2-tf2804655.html#a7847251 Sent from the Struts - Dev mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: OGNL performance detrimental to Struts 2

2006-12-12 Thread Philip Luppens
On 12/12/06, Wendy Smoak <[EMAIL PROTECTED]> wrote: On 12/11/06, dice <[EMAIL PROTECTED]> wrote: > By my own benchmarking I am finding Struts 2 somewhere between 5-10 times > slower than Struts 1 in JSP rendering. JProfiler is telling me OGNL is the > bottleneck. There's a similar thread on the

Re: OGNL performance detrimental to Struts 2

2006-12-11 Thread Wendy Smoak
On 12/11/06, dice <[EMAIL PROTECTED]> wrote: By my own benchmarking I am finding Struts 2 somewhere between 5-10 times slower than Struts 1 in JSP rendering. JProfiler is telling me OGNL is the bottleneck. There's a similar thread on the webwork dev list: http://forums.opensymphony.com/threa

Re: OGNL performance detrimental to Struts 2

2006-12-11 Thread Paul Benedict
Howard, who writes Tapestry, notes the same thing in his framework: http://tapestryjava.blogspot.com/2006/11/improve-tapestry-performance-with.html He chose a different way of retrieving simple properties. It supposedly has jumped his performance a lot. I recommend Struts 2 Committees look for

Re: OGNL performance detrimental to Struts 2

2006-12-11 Thread Bob Lee
We noticed the same thing. Maybe we should replace it with JSP-EL? (I don't have time to rewrite OGNL myself.) In the mean time, we wrote a custom version of OgnlValueStack (pasted below) which optimizes and uses reflection for normal Java expressions; it's an order of magnitude faster. I think i

OGNL performance detrimental to Struts 2

2006-12-11 Thread dice
been planned. If so, what timeframe? -- View this message in context: http://www.nabble.com/OGNL-performance-detrimental-to-Struts-2-tf2804655.html#a7825136 Sent from the Struts - Dev mailing list archive at Nabble.com. - To