title: What commands in Stata are directly compiled from C?
body: <p>The answer would be helpful in identifying the bottlenecks in the code.</p>
  
  <p>Inspired by this (URL updated): <a href="http://www.stata.com/statalist/archive/2012-03/msg01181.html" rel="nofollow">http://www.stata.com/statalist/archive/2012-03/msg01181.html</a></p>
  
  <p>On Mon, Mar 26, 2012 at 8:10 PM, Nick Cox  wrote:
  ></p>
  
  <blockquote>
    <p>-tabulate- is a built-in command, namely compiled C code. If you want
    to look at the code, you will need to get a developer's job at
    StataCorp, but that in essence is why it is fast.</p>
    
    <p>-collapse- by contrast is lots of Stata code to interpret. You can
    look at it in any text editor. including -doedit-.</p>
  </blockquote>