Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
11.3
-
None
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
- Dependent
-
NETBEANS-3468 Make HiDPI (Retina) icons work in MacOS menu bar
- Resolved