Subspace compression