> You may also want to be careful about list comprehensions in terms of memory 
> footprint. E.g, for one L1-cachable row they may be fine, but for the whole 
> O(100GB) file a bad idea.

If memory or cache presure it could be worth to replace list comprehensions 
with generator expresions, ie going from [v for v in values if f(v)] to (v for 
v in values if f(v)) 

Reply via email to