|
-
Mar 11th, 2004, 05:10 PM
#1
Speed
My Java app needed 600-1400 milliseconds to parse an XML file and create some menus based on the contents. That was on an Athlon 600, 384MB RAM, Java 1.4, Win2k.
Now, on the new computer, it takes less than 100 milliseconds. This is an Athlon64 3200+ (2.0 GHz, running in 32-bit mode), 1GB RAM, Java 1.5a, WinXP.
What is the main reason for this sudden surge of speed? Just the RAM and CPU? Or is Java 1.5 so much faster?
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Mar 11th, 2004, 09:42 PM
#2
Dazed Member
The increased CPU speed must be the reason for the drop in processing time. Im not sure if the runtime is reworked with every new jdk release though. From jdk1.3 to jdk1.5 the API has almost doubled in size. Now my O'Reilly Java in a Nutshell books can be used as doorstops.
Why are you running in 32 bit mode though. I thought that you could run a processor in 64 bit mode and still run 32bit apps.
-
Mar 12th, 2004, 05:23 AM
#3
WinXP64 for Athlon is not out yet.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Mar 14th, 2004, 06:07 AM
#4
Fanatic Member
is the XML parser hand-coded, or is there one in the API? (I don't know the java api at all well). Either way, that A64 has faster and probably bigger(?) cache than the old athlon, plus the ram fetches will be faster - since the task is basically cpu-bound, it's not all that suprising.
Btw, does Java 1.5 have atomic ops?
-
Mar 14th, 2004, 06:32 AM
#5
I think it uses the Xerces2 XML parser. Hmm, I think there was a change there...
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|