mirror of
https://github.com/FoggedLens/iD.git
synced 2026-04-21 11:16:36 +02:00
Remove queueing, it was too large a performance hit
This commit is contained in:
+7
-14
@@ -181,21 +181,14 @@ iD.Connection = function() {
|
||||
});
|
||||
inflight = [];
|
||||
|
||||
var q = queue(2);
|
||||
|
||||
var bboxes = tiles
|
||||
tiles
|
||||
.map(apiExtentBox)
|
||||
.filter(tileAlreadyLoaded);
|
||||
|
||||
bboxes.forEach(function(e) {
|
||||
q.defer(bboxFromAPI, e);
|
||||
});
|
||||
|
||||
q.awaitAll(function(err, res) {
|
||||
var g = iD.Graph();
|
||||
if (res) res.forEach(function(r) { g = g.merge(r); });
|
||||
event.load(err, g);
|
||||
});
|
||||
.filter(tileAlreadyLoaded)
|
||||
.forEach(function(e) {
|
||||
bboxFromAPI(e, function(err, g) {
|
||||
event.load(err, g);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
connection.url = function(_) {
|
||||
|
||||
Reference in New Issue
Block a user