Changeset 8327 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2015-05-04T23:48:52+02:00 (10 years ago)
Author:
Don-vip
Message:

fix #11386 - reduce cache memory footprint (patch by wiktorn)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/imagery/TMSCachedTileLoader.java

    r8286 r8327  
    4747    public TMSCachedTileLoader(TileLoaderListener listener, String name, int connectTimeout, int readTimeout, Map<String, String> headers, String cacheDir) throws IOException {
    4848        this.cache = JCSCacheManager.getCache(name,
    49                 1000, // use JCS memory cache instead of MemoryTileCache
     49                200, // use fairly small memory cache, as cached objects are quite big, as they contain BufferedImages
    5050                MAX_OBJECTS_ON_DISK.get(),
    5151                cacheDir);
Note: See TracChangeset for help on using the changeset viewer.