Write a million numbers.
var i=1, r = N / 1000; t = m(r); do { document.write(t.join(' '), '\n'); w(r); i += r; } while (i <= N); // an ignorant implementation for (var i=0; i<N; i++) document.writeln(i); return; /* This "ignorant" implementation might * be the way a trivial solution would be * written. However, this is some 40 times * less fast. * Considering that "40 times less fast" * means 20 minutes vs. 30 seconds, it * becomes very important. * The challenge of "creating/making/writing" * one million numbers as fast as possible is a * challenge for thought. * It represents the classic computer issue: * I need it; how do I get it? how do I get it * quickest/fastest/easiest/best? */
Ran 201,142 IE/Mac, 166,128 IE 5 / Mac OS 9.2.2, 45,220 Netscape 4.77 / Mac OS 9.2.2, 28,215 Mozilla 1.3/Mac, 27,770 Phoenix/Mac, 24,366 Chimera/Mac, 26,654 Camino/Mac, 27,057 OmniWeb/Mac, 27,902 Safari/Mac; 6,188 IE/Windows, 8,937 Phoenix/Windows.