DO NOT REPLY [Bug 27717] - <x:forEach> very slow in JSTL 1.1

[email protected]
Newsgroups gmane.comp.jakarta.taglibs.devel
Message-ID <[email protected]>
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=27717>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27717





------- Additional Comments From [email protected]  2007-12-20 18:52 -------
(In reply to comment #14)
> Obviously I need to test in a profiler etc.

Speaking of which, I just grabbed NB6 and set up Standard 1.0.6 and Standard
1.1.2 projects to get a better idea of the performance difference. Using the
Test.xml attached a few years back and the following loop:

<% long start = System.currentTimeMillis(); %>
<x:forEach select="$doc//countries/country">
country id: <x:out select="id"/>
country description: <x:out select="description"/>
country countrycode: <x:out select="countrycode"/>
country carcode: <x:out select="carcode"/>
country nationality: <x:out select="nationality"/>
</x:forEach>
<% long delta = System.currentTimeMillis() - start; out.println("Duration: " +
delta + "ms"); %>

Here's what I got:
Standard 1.0.6: ~150ms
Standard 1.1.2: ~16000ms

I'm running JDK 1.5.0_12, Xalan 2.7.0, Xerces 2.7.1, Tomcat 5.5.23, and WinXP SP2.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
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.