Compactness and length of legs