CSV parsing (large files)
CSV parsing (large files)
- Subject: CSV parsing (large files)
- From: Jacob Bandes-Storch <email@hidden>
- Date: Tue, 29 Jul 2008 21:55:23 -0700
I've got several large-size CSV files (a total of about 1.25 million
lines, and an average of maybe 10 or so columns) that I want to parse
into a 2D array. I found some parsing code that uses NSScanner, and it
works fine with small files, but it's very resource-intensive and slow
with large files. Should I try and optimize it more, or try using C
instead of Objective-C for parsing, or what?
The ultimate goal here is to convert the CSV files into a SQLite
database. Should I even be doing it this way? Maybe just one row into
the database at a time? I'd like to hear people's opinions. Thanks in
advance!
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden