现在前端极限速度大概是1秒钟标两千个点左右 如何优化做到3秒内标一万五千个点 现在是循环执行下面这段代码
var x = deviceMap.longitude;
var y = deviceMap.latitude;
var iconUrl = deviceMap.iconUrl;
size = new SuperMap.Size(30,30);
offset = new SuperMap.Pixel(-(size.w/2), -size.h);
icon = new SuperMap.Icon(iconUrl, size, offset);
//初始化标记覆盖物类
var device = new SuperMap.Marker(new SuperMap.LonLat(x,y),icon);
//添加覆盖物到标记图层
markerLayer.addMarker(device);
//注册 click 事件,触发 showPopup()方法
device.events.on({"click":showPopup,"scope":[device,x,y,deviceMap]});