Computing Compaction