100bikes has some excellent info ....also did you ride a M? I rode lots of bikes. I narrowed it down to 3 or 4 bikes and rode all of them M and L. Specialized has a fit calculator where they take measurements of bone lengths and things like that. It told them I was a L, but just barely and if I wanted a M, they could make it fit. So I rode both the M and L and the L "felt" better. In other brands neither the M or L felt as comfortable as the Spesh. So thats what I bought.
When I FIRST got a MTB (decades ago), I was comparing it to my BMX bike that I was super comfortable on and rode for a decade...jumps, tricks, everything was EASY. Got on a MTB and it felt HUUUUGE. Couldn't do ANY of those things easily....bunny hops...broncos....tabeletops...cross ups..all the things that were commonplace on a BMX bike became foreign. MTBs now are better for doing these things so I am re-learning to do alot of these things...technique is crucial.