From fe2542902cbc85e891befde1ecb0edf314697fb1 Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Mon, 16 Jun 2014 16:39:42 +0100 Subject: [PATCH] reduce the delay between requests - now we always send 4 at a time, rather than larger batches, a shorter delay is better --- code/map_data_request.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/map_data_request.js b/code/map_data_request.js index 8080582e..6fa162d0 100644 --- a/code/map_data_request.js +++ b/code/map_data_request.js @@ -41,8 +41,7 @@ window.MapDataRequest = function() { // a short delay between one request finishing and the queue being run for the next request. - // this gives a chance of other requests finishing, allowing better grouping of retries in new requests - this.RUN_QUEUE_DELAY = 0.2; + this.RUN_QUEUE_DELAY = 0.05; // delay before processing the queue after failed requests this.BAD_REQUEST_RUN_QUEUE_DELAY = 10; // longer delay before doing anything after errors (other than TIMEOUT)