Article View: borland.public.jbuilder.java.language
Article #420Performance problems with jdk 1.5 on Linux plattform
From: Welf Wustlich
Date: Mon, 15 Aug 2005 13:48
Date: Mon, 15 Aug 2005 13:48
18 lines
1506 bytes
1506 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?
Technical Details
Message-ID:
<43009c82$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: f74b3,72d7453c0f169830,start X-Google-Attributes: gidf74b3,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Mon, 15 Aug 2005 15:48:07 +0200 From: Welf Wustlich <welf@planet.de> 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: <43009c82$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1124113538 194.59.17.130 (15 Aug 2005 06:45:38 -0700) Lines: 18 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail