Article View: borland.public.jbuilder.java.language
Article #421Performance problems with jdk 1.5 on Linux plattform
From: Welf Wustlich
Date: Mon, 15 Aug 2005 13:51
Date: Mon, 15 Aug 2005 13:51
21 lines
1547 bytes
1547 bytes
Performance problems with jdk 1.5 on Linux plattform
(not tested on Windows, might be the same)
After refactoring using the new features from java 1.5 I lost
performance significantly:
public Vector<unit> units;
The new code:
for (unit u: units) u.accumulate();
runs more than 30% slower than the old code:
for (int i = 0; i < units.size(); i++)
units.elementAt(i).accumulate();
I expected the opposite.
Is there any information available that helps?
Best regards, Welf
Technical Details
Message-ID:
<43009d68$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed.hal-mli.net!feeder1.hal-mli.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: f74b3,72d7453c0f169830 X-Google-Attributes: gidf74b3,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Mon, 15 Aug 2005 15:51:58 +0200 From: Welf Wustlich <N0SPAMwelf@planet.deN0SPAM> User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040906 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language Subject: Performance problems with jdk 1.5 on Linux plattform X-Enigmail-Version: 0.86.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 194.59.17.130 Message-ID: <43009d68$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1124113768 194.59.17.130 (15 Aug 2005 06:49:28 -0700) Lines: 21 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed.hal-mli.net!feeder1.hal-mli.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail