The length and depth of compact Lie groups