On Sat, Nov 28, 2009 at 6:12 PM, Simon King <[email protected]> wrote:

> Hi Tim!
>
> On 28 Nov., 11:04, Tim Joseph Dumol <[email protected]> wrote:
> [...]
> > So it seems that using the CSV reader for this case is around half as
> slow
> > as using split (probably due to the type conversions required).
>
> It's a pity that I can't remember what benchmarks led me to the
> opposite assumption.
>
> So, csv's purpose is not fast parsing but a flexible and comfortable
> way to read tabular data from different programs like Excel, right?
>
>
Yes. It has many convenience functions for that purpose. It may be faster in
splitting a file into records, though. I would assume it would use a
streaming method of processing the file, rather than the line-by-line method
of doing so with str.split.


> Cheers,
> Simon
>
> --
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/sage-support
> URL: http://www.sagemath.org
>



-- 
Tim Joseph Dumol <tim (at) timdumol (dot) com>
http://timdumol.com

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to