vue-leaflet/Vue2Leaflet

large CPU and Memory usage on open Vue devtool window

开放

#404 创建于 2019年6月13日

 (2 条评论) (0 个反应) (0 位负责人)JavaScript (380 个派生)batch import
confirmedhelp wanted

仓库指标

星标
 (1,942 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

My application uses a web socket to update markers and show transport . When I open devtool, I see a huge amount of events [ready $emit by LGeoJson] Chrome uses 2GB, the CPU goes to a zone above 60% On my map about 20 static LGeoJson and 100 static event markers are displayed. Even with such a small number of objects, I get crash vue devtool.

If I go to tab "Events" and push "clear" events, the memory is released, there is no load CPU and no crush devtool.

Next, I add transport objects whose coordinates change dynamically on a web socket and see events [update: latLng $emit by LMarker] There are a lot of them and it is very difficult to track down the desired event.

I understand that the problem is most likely in dev tools, but is it possible to disable map objects from $emit?

Browsers Affected

  • Chrome 75.0.3770.80 vue devtool 5.1.0

Versions

Leaflet: v1.5.1
Vue: v2.6.7
Vue2Leaflet: v2.1.1

贡献者指南