<p>I hope our <a href="https://stats.stackexchange.com/faq">FAQ</a> is clear on this: purely programming-related questions belong elsewhere.  Our site is for questions of statistical interest.  If that seems ambiguous, then we would be very glad of any suggestions to clarify it.</p>

<p>Nevertheless, sometimes a little creative thinking can re-cast a question from one form to another.  If the issue concerns, say, running a simulation or visualization to answer a statistical question and the simulation (or whatever) is too slow to be practicable, then a question of the form "I'm trying to solve this statistical question with a simulation (or whatever) but it's too slow; what can I do?" <em>would</em> be on-topic here and in fact would be likely to elicit some out-of-the-box answers that might be far better than you would get just by trying to speed up the code.  In your case, the question you reference doesn't even tell us what statistical problem the code may be trying to solve, so you definitely need to rewrite it before it could be construed as statistically interesting.</p>
