Spacetime compression