Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Did you tried it on a multi-core computer? Commented Mar 19, 2011 at 14:38
  • You're spawning 1000 threads, and starting a thread has some overhead. Threads give you parallelism, but don't automatically make things go faster. In your example they're all writing to the same file at the same time, which can't be what you intended. Commented Mar 19, 2011 at 14:43
  • On a side note, have a look at the style guide and if you're using Python 2.x, get rid of that old-style class. Commented Mar 19, 2011 at 14:43