Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4393017

severe performance degredation with displaying jpg image

XMLWordPrintable

    • 2d
    • 02
    • generic
    • solaris_7
    • Verified

      We are experiencing a severe Java performance degradation with the
      JDK1.3 release, which causes JPEG image handling to be extremely slow.
      % java -version
          java version "1.3.0"
          Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0)
          Java HotSpot(TM) Client VM (build 1.3.0, mixed mode)

      Test case is in /net/cores.ebay/cores/62227310

      The package includes source code to the application
      itself; the application then calls a third-party imaging library from
      Accusoft (ImageGear Java [igjava.jar]). We have included an evaluation
      copy of the Accusoft library in this package to help you debug the
      problem. That library is responsible for making the direct calls to
      the Java imaging routines which are slow in the Java 1.3 release.

      Using this application with the JDK 1.2.2_06 gives display performance
      on the order of only a few seconds, which is acceptable; but using it with
      Java 1.3 gives display performance on the order of minutes, which is
      prohibitively slow. Our customers are demanding an upgrade to 1.3 to take
      advantage of its various new features, but we are prevented from doing so
      because of this one performance hit.

      Here are commands to compile the code using the C-shell:

          cd igcl_107
          setenv CLASSPATH /tmp/igcl_107:/tmp/igcl_107/igjava.jar
          foreach f ( accusoft/Samples/DisplayImage/*.java )
          echo === $f
          javac $f
          end

      ----------------------------------------------------------------
      How to run:
      ----------------------------------------------------------------

          cd igcl_107
          setenv CLASSPATH /tmp/igcl_107:/tmp/igcl_107/igjava.jar
          java accusoft/Samples/DisplayImage/DisplayImage

          
          Use the File->Open... menu option.
          Navigate to the images/ directory.
          Choose one of the images.
          Wait the minute or so for the image to display. It has taken up to 4-5 minutes to load

      In order to use the 1.2.2_06 you will need to use MainFrame.java.12
      simply move MainFrame.java in igcl_107/accusoft/Samples/DisplayImage and replace it with the MainFrame.java.12

            duke J. Duke
            msusko Mark Susko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: