title: Optimizing Rails routing definition
body: <p>We have about 650 routes defined in our Rails <code>3.2.22</code> app. Around 20 of them make up over 90% of our requests. These 20 all fall under an optional scope: <code>(/:api_version)</code>. Where is the most optimal place to define these routes. </p>
  
  <p>Is it at the beginning of the definition tree or the end? In other words, should they be defined by popularity in ascending or descending order?</p>