Re:Python performance is a fool's errand
by billjings on Monday August 17, 2009 @12:33PM
(#768467)
First, I second the notion that switching to another tool is a good idea when performance becomes important. I was doing this by diving down into C years ago, and I have to imagine the toolset has only gotten better since then.
Second, you can make your generator method a coroutine and send it data as it iterates.
Second, you can make your generator method a coroutine and send it data as it iterates.