Skip to content

2022-May-02 - Prerelease - 2.6.725

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 02 May 10:54
· 1172 commits to master since this release
574bbf0
Use an in-memory cache in ImageFactory by string key. (#10356)

* Use an in-memory cache in ImageFactory.

This prevents excessive ImageIO.read() calls on images. I noticed this showed up in execution time profiles when looking at the performance of handling mouse events during the move phase, which spent a lot of time in updateRouteAndMouseShadowUnits() that eventually call down to this for country small flags.

* Fix format.

* Cache by key.

* Remove commented out code.