To add to the earlier post:
the length of the cage does influence the degree of slack the mech can take up.
a typical mtb cassete would be 11-34 or 11-34. Couple this with triple chain rings and you have a wide range of gears to cover. Hence the need for a long cage to take up the slack at the extremes.
a typical road cassette would be 11-23 or 12-25. Couple this with only a double chain ring and you have a smaller range of gears to cover. Hence you can get away with a short cage.
Shimano's website
http://www.shimano-europe.com/cycling provides stats of their rear mech's a the range they cover (double or triple chainring - capacity etc)