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

SunToolkit.getImageFromHash could be optimized a bit.

    XMLWordPrintable

    Details

    • Subcomponent:
    • Understanding:
      Cause Known
    • CPU:
      generic
    • OS:
      generic

      Description

      In this class, if the security manager is not null, you
      do a url.openConnection.getPermission to determine what
      perms are needed. Then later, if the
      image isn't in the cache, you do a createImage(new URLImageSource(url))
      which essentially does a second openConnection. Could
      you cache the URLConnection returned from openConnection,
      then call the public URLImageSource(URL u, URLConnection uc) method
      instead? This will save the overhead of having to create a new
      connection.

      BTW, there isn't a release "merlin-fcs" for this subcategory...

      ###@###.### 2002-02-19

        Attachments

          Activity

            People

            Assignee:
            serb Sergey Bylokhov
            Reporter:
            wetmore Bradford Wetmore
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Imported:
              Indexed: