http://plumbr.eu/blog/reducing-memory-consumption-by-20x
http://developer.51cto.com/art/201306/396744.htm