title: What makes this the fastest JavaScript for printing 1 to 1,000,000 (separated by spaces) in a web browser?
body: <p>I was reading about output buffering in JavaScript <strong><a href="http://www.webreference.com/programming/javascript/jkm3/4.html" rel="nofollow noreferrer">here</a>,</strong> and was trying to get my head around the script the author says was the fastest at printing 1 to 1,000,000 to a web page. (Scroll down to the header "The winning one million number script".) After studying it a bit, I have a few questions: </p>
  
  <ul>
  <li>What makes this script so efficient compared to other approaches? </li>
  <li>Why does buffering speed things up? </li>
  <li>How do you determine the proper buffer size to use?</li>
  <li>Does anyone here have any tricks up her/his sleeve that could optimize this script further?</li>
  </ul>
  
  <p>(I realize this is probably CS101, but I'm one of those blasted, self-taught hackers and I was hoping to benefit from the wisdom of the collective on this one. Thanks!)</p>