OK, before I start, I don't want people to read the title and post links to stuff like this. I have read that.
What I want is to make sure that I get what leaks are in Warcraft 3, what kind of things leak and what I should do about them. Therefore I have prepared a few questions. I would like people to answer these questions only, and not write massive walls of text loosely explaining leaks in a very plain and confusing way.
Now that that's clear, here are my questions:
Thanks a heap guys!
What I want is to make sure that I get what leaks are in Warcraft 3, what kind of things leak and what I should do about them. Therefore I have prepared a few questions. I would like people to answer these questions only, and not write massive walls of text loosely explaining leaks in a very plain and confusing way.
Now that that's clear, here are my questions:
- Leaks are (basically) variables that are not being used or going to be used and are simply taking up memory, thus causing lag. Is that correct?
- Are variables the only things that leak? Do hashtables leak? Do arrays leak?
- I have heard that things like Locations and Unit Groups leak. What other kind of variables leak?
- How do I remove leaks? I know of JASS such as
RemoveLocation()
, but what JASS/GUI functions can I use for each type of leak, and how do I use them (if there is a specific way)? - Does JASS leak more than GUI, vice versa, or doesn't it matter?
- Any special tips I should know about leaks?
Thanks a heap guys!