Faster formatting of large tables

Ref #44