You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Eirik Bakke (Jira)" <ji...@apache.org> on 2019/11/27 03:15:00 UTC

[jira] [Created] (NETBEANS-3469) Cache PNG versions of loaded SVG icons

Eirik Bakke created NETBEANS-3469:
-------------------------------------

             Summary: Cache PNG versions of loaded SVG icons
                 Key: NETBEANS-3469
                 URL: https://issues.apache.org/jira/browse/NETBEANS-3469
             Project: NetBeans
          Issue Type: Improvement
          Components: platform - Other
    Affects Versions: 11.3
            Reporter: Eirik Bakke


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.




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists