Beeblerox/HaxeFlixel — pull request #125 by crazysam (2012-09-29 23:43:41+00:00)
Title: Optimizing pooling in FlxQuadTree & FlxList - better

I'm happy with this implementation, it's a little confusing, but essentially, FlxQuadTree now has a "head" and "next" references of type FlxQuadTree, essentially turning it into a Linked List. FlxList already is a linked list, so it didn't need many changes.

There's no allocation unless a new FlxQuadTree or FlxList are absolutely necessary, and storing objects to be recycled is blazing fast.

I also added some values into the perf window to help identify potential memory issues.