Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-3469

Cache PNG versions of loaded SVG icons

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 11.3
    • None
    • platform - Other

    Description

      Support for SVG file loading via ImageUtilities was added in NETBEANS-2604. Once a substantial number of icons have been migrated to SVG versions ( NETBEANS-2617 ), we should consider doing some performance work to ensure that icons can be loaded as quickly as before in the common case. See the benchmark and discussion in https://github.com/apache/netbeans/pull/1278 .

      timboudreau had the idea of caching rasterized versions of the SVG icons in the cache directory the first time they are loaded (and painted at a specific HiDPI scaling factor). I'd guess that this could speed up SVG file loading by about 4x. If all icons are cached, it would also save the overhead of loading the ~3MB Batik library JARs.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ebakke Eirik Bakke
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: