Changes between Version 1 and Version 2 of Ticket #16510, comment 1
- Timestamp:
- 2018-08-31T01:11:45+02:00 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #16510, comment 1
v1 v2 1 1 Reg. the Selection List Window: 2 The main problem here is that method org.openstreetmap.josm.tools.ImageProvider.get(OsmPrimitiveType type) is called very often (twice for each element in the list). Each call uses getIfAvailableImpl() which does quite a lot of computations before it finally finds the result in the cache. All this happens in a synchronized block. 2 The main problem here is that method `org.openstreetmap.josm.tools.ImageProvider.get(OsmPrimitiveType type)` is called very often (twice for each element in the list). Each call uses `getIfAvailableImpl()` which does quite a lot of computations before it finally finds the result in the cache. All this happens in a `synchronized` block. 3 3 The attached quick+dirty patch improves performance of the Selection List Window a lot but maybe has unwanted side effects. 4 4


