[Rcpp-devel] Read csv and export object in R
Dirk Eddelbuettel
edd at debian.org
Tue Apr 21 13:21:39 CEST 2015
On 21 April 2015 at 11:01, ogami musashi wrote:
| Benchmarks against fread shows the code i use returns a lighter object
| (a simple matrix) and thus processes faster.
|
| reading 400 16,2Mb files with a 6 cores took 177,949 seconds with the
| cpp function and 228.231 seconds with fread.
|
| Neadless to say both are considerably faster than read.table (took 21669
| seconds!) and read_csv from readr package (took about the same).
|
| I know it would be better to contribute an rcpp gallery but for now i
| just have time to post the code here:
I would definitely like a Rcpp Gallery post showing that code this simple
beats all the competitors, ideally with chart of the benchmark results :)
I guess knowing your dimensions does indeed help a great deal.
Dirk
--
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
More information about the Rcpp-devel
mailing list