Changeset 10403 in josm
- Timestamp:
- 2016-06-16T17:25:29+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/ImageProvider.java
r10378 r10403 840 840 } 841 841 842 ImageResource ir = cache.get(cacheName);843 if (ir != null) return ir;844 845 842 switch (place) { 846 843 case typeArchive: 847 844 if (archive != null) { 845 cacheName = "zip:"+archive+":"+cacheName; 846 ImageResource ir = cache.get(cacheName); 847 if (ir != null) return ir; 848 848 849 ir = getIfAvailableZip(fullName, archive, inArchiveDir, type); 849 850 if (ir != null) { … … 854 855 break; 855 856 case typeLocal: 857 ImageResource ir = cache.get(cacheName); 858 if (ir != null) return ir; 859 856 860 // getImageUrl() does a ton of "stat()" calls and gets expensive 857 861 // and redundant when you have a whole ton of objects. So,
Note:
See TracChangeset
for help on using the changeset viewer.