Spinnaker pole length

What is the best length for the spinnaker pole? Is it the longest allowed 7 ft, or are there any reasons to have a shorter pole? FSNewbie