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

SunToolkit.getImageFromHash could be optimized a bit.

XMLWordPrintable

    • Cause Known
    • generic
    • generic

      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

            Unassigned Unassigned
            wetmore Bradford Wetmore
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: