Quantcast

Use OvalePool to reduce memory usage in OvaleAura.

Author Johnny C. Lam <jlam88@gmail.com>
Author date 2013-03-16 08:03:41
Author local date 2013-03-16 08:03:41 +0000
Committer Johnny C. Lam <jlam88@gmail.com>
Committer date 2013-03-16 08:03:41
Committer local date 2013-03-16 08:03:41 +0000
Commit eceb7b8a2901c26cdaa8f9fde105c671b86a0602
Tree 2931bd0d4278c12604c9e4bd883025e1b8354861
Parent d530b45fad11111a2eb14210cff5a0579c4fb18b
Use OvalePool to reduce memory usage in OvaleAura.

Create a pool of auras that are used (and reused) when recording the auras
present on a unit.  This bounds the memory used by OvaleAura instead of
letting the garbage collector reclaim unused memory.

Don't pass around tables between modules; this decreases linkage between
modules by not exposing internal data structures and improves overall
encapsulation.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@777 d5049fe3-3747-40f7-a4b5-f36d6801af5f