Run Time Critical, reading operation of CSV files in C -


is there way code swift, efficient way of reading csv files?[the point note here is: talking csv file million+ lines]

the run time critical metric here.

one resource on internet concentrated on using binary file operations read in bulk. sure, if helpful in reading csv files

there other methods well, robert gamble written sourceforge code. there way write using native functions?

edit: lets split entire question in clearer , better way:

  1. is there efficient (run time critical) way read files in c? (in case million rows long .csv file)

  2. is there swift efficient way parse csv file?

there no single way of reading , parsing type of file fastest time. however, might want build ragel grammar csvs; tend pretty fast. can adapt specific type of csv (comma-separated, ;-separated, numbers only, etc.) , perhaps skip on data you're not going use. i've had experience dataset-specific sql parsers skip on of input (database dumps).

reading in bulk might idea, should measure on actual data whether it's faster stdio-buffering. using binary i/o might speed things bit on windows, need handle newlines somewhere else.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -