[R] R File IO Slow?
Henrik Bengtsson
hb at stat.berkeley.edu
Thu Mar 1 18:59:29 CET 2007
Just an idea: Two things that can slow down save()/load() is if you
save() in ASCII format or a compressed binary format. If this is your
case for MYFILE, try to resave in a non-compressed binary format. See
?save for details.
/HB
On 3/1/07, ramzi abboud <ramziabb at yahoo.com> wrote:
> Is R file IO slow in general or am I missing
> something? It takes me 5 minutes to do a load(MYFILE)
> where MYFILE is a 27 MB Rdata file. Is there any way
> to speed this up?
>
> The one idea I have is having R call a C or Perl
> routine, reading the file in that language, converting
> the data in to R objects, then sending them back into
> R. This is more work that I want to do, however, in
> loading Rdata files.
>
> Any ideas would be appreciated.
> Ramzi Aboud
> University of Rochester
>
>
>
>
>
>
> ____________________________________________________________________________________
> Need Mail bonding?
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
More information about the R-help
mailing list