increase latlng to guid cache size

This commit is contained in:
Jon Atkins 2015-03-07 16:55:01 +00:00
parent dd9f053ed3
commit 052d208783

View File

@ -94,8 +94,8 @@ window.findPortalLatLng = function(guid) {
(function() {
var cache = {};
var cache_level = 0;
var GC_LIMIT = 5000; // run garbage collector when cache has more that 5000 items
var GC_KEEP = 4000; // keep the 4000 most recent items
var GC_LIMIT = 15000; // run garbage collector when cache has more that 5000 items
var GC_KEEP = 10000; // keep the 4000 most recent items
window.findPortalGuidByPositionE6 = function(latE6, lngE6) {
var item = cache[latE6+","+lngE6];