Generator Expressions and CSV

Emile van Sebille emile at fenx.com
Fri Jul 17 14:26:22 EDT 2009


On 7/17/2009 10:58 AM Zaki said...
<snip>
> Now, I've tried running this and it takes much longer than I'd like. I
> was wondering if there might be a better way to do things 

Suppose, for the sake of argument, that you've written highly efficient 
code.  Then the processing time would already be entirely optimized and 
no improvements possible.  It's running as fast as it can.  We can't help.

On the other hand, maybe you didn't.  In that case, you'll need to 
profile your code to determine where the time is consumed.  At a 
minimum, you'll need to post the slow parts so we can see the 
implementation and suggest improvements.

Emile




More information about the Python-list mailing list