On the holomorphic length of a complex projective variety