Huge garbage creation from map data providers
edit: I meant to post this in the Lua/XML help forum. Sorry!
I don't know if this is a bug or accepted behavior, but it appears that using a data provider will create many MB of garbage over a short period of time while the mouse is over the world map.
1. Create an addon with one line of code (I've noticed this behavior in more fleshed out addons too):
3. Note the memory usage of the single addon. (From mouseover of Game Menu microbutton if you don't have an memory usage addon enabled.)
4. Open the world map and put the mouse over it.
5. Periodically check memory usage.
On my client, the 3k attributed to the addon balloons to 3 MB within a minute. It will reset periodically (meaning it's likely garbage being collected) and then march back up.
With multiple addons having a data provider, one unlucky addon gets the blame and I've seen it add 5MB within a minute before dropping back.
Has anyone else noticed this behavior? Is there something we can do to minimize it? Or is it accepted behavior and we should ignore it?
This happens with my addon, but the cursor need not be on the world map. I have the cursor over the game menu and I see the addon memory usage climb and then when garbage collection kicks in, go back down.
The more pins on the map, the quicker the memory usage rises. None of my map data code is being called as this is happening. Therefore I believe the issue is with Blizzard's code.
|All times are GMT -6. The time now is 08:34 AM.|
vBulletin © 2020, Jelsoft Enterprises Ltd
© 2004 - 2020 MMOUI