Results 1 to 5 of 5

Thread: Speed

  1. #1

    Thread Starter
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    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.

  2. #2
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418
    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.

  3. #3

    Thread Starter
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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.

  4. #4
    Fanatic Member
    Join Date
    Dec 2003
    Posts
    703
    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?
    an ending

  5. #5

    Thread Starter
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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
  •  



Click Here to Expand Forum to Full Width