Home > front end >  Baidu map load mass point, multiple load mass point has been increased memory, display will slow dow
Baidu map load mass point, multiple load mass point has been increased memory, display will slow dow

Time:12-21

As shown in the figure below, if the map to add mass points, has been (the use of the correct time is not a 100 s calls) using the map. The addOverlay (a_pointCollection); Will lead to increased memory, even before it has a map. ClearOverlays (); But the memory is not released,
Figure is a major increases in memory in the code, other have ruled out;
Figure 2 is at the start of the run, memory size, ensure that no other factors during the test;
Figure 3 run about a minute, the added value of memory (MB), it is the function of use during loading pointCollection of mass points, every 100 ms draw five points on the map


CodePudding user response:

Understanding the asynchronous loading

CodePudding user response:

Have tried it on asynchronous loading yesterday, is still the same result, memory is on the rise

CodePudding user response:

Massive high concurrency

Then find a temporary storage

And then set a timer to data loading step by step

The thinking of similar paging query


CodePudding user response:

Has step by step loading example, or don't understand how to use the
  • Related