Remove dead code.
Cache results of struct.calcsize()
Display progress indicator.
Allow to skip maximum heap search.

A temporary hack until performance is fixed.