Opened 5 years ago
Last modified 5 years ago
#20813 closed enhancement
Modernize org.openstreetmap.josm.gui.layer.geoimage.ImageDisplay — at Initial Version
| Reported by: | simon04 | Owned by: | simon04 |
|---|---|---|---|
| Priority: | normal | Milestone: | 21.05 |
| Component: | Core image mapping | Version: | |
| Keywords: | heap profiling intellij yourkit | Cc: | Don-vip, taylor.smock, Bjoeni, GerdP, StephaneP |
Description
- ImageDisplay is using java.awt.MediaTracker.
According to https://stackoverflow.com/a/7369580/205629 (written in 2010):
MediaTracker was useful in 1995. Back then the primary GUI use of java was Applets, and Applets would usually load images slowly over the network.
...
These days you can typically load images synchronously, and it is best to use ImageIO.
- ImageDisplay creates a new thread for each image to be loaded. We can use
MainApplication.worker
- ...?
Note:
See TracTickets
for help on using tickets.


