Changes between Version 1 and Version 2 of Ticket #16510, comment 1


Ignore:
Timestamp:
2018-08-31T01:11:45+02:00 (3 months ago)
Author:
Don-vip
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16510, comment 1

    v1 v2  
    11Reg. 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.
     2The 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.
    33The attached quick+dirty patch improves performance of the Selection List Window a lot but maybe has unwanted side effects.
    44