[okfn-labs] Python Iterator over table (csv) *columns*

Paul Walsh paulywalsh at gmail.com
Wed Dec 17 14:37:54 UTC 2014


ok, that is interesting, thanks.

> On 17 Dec 2014, at 11:40, stef <s at ctrlc.hu> wrote:
> 
> On Wed, Dec 17, 2014 at 10:22:22AM +0100, Friedrich Lindenberg wrote:
>> So you're looking for something that has better performance than reading
>> the whole file N (number of cols) times? That seems hard. The only thing
>> you might be able to do is cache the line lengths, so you can read without
>> seeking newlines and end-quotes after the first run...
> 
> you could try mmapping the file.
> 
> -- 
> otr fp: https://www.ctrlc.hu/~stef/otr.txt
> _______________________________________________
> okfn-labs mailing list
> okfn-labs at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/okfn-labs
> Unsubscribe: https://lists.okfn.org/mailman/options/okfn-labs




More information about the okfn-labs mailing list