Dear R-ers I've recently upgraded to R-1.4 but I have noticed that it is slower to load datasets than R-1.3.1: R-1.3.1:> system.time(a <- read.table("~/people/academics/mitchell/nzsl02.27",header=T))[1] 40.86 0.51 54.10 0.00 0.00>R-1.4.0:> system.time(a <- read.table("~/people/academics/mitchell/nzsl02.27",header=T))[1] 293.24 30.76 478.35 0.00 0.00 The dataset in question is big ( 75306 x 27) but not desperately so. Am I doing something stupid here? -- Robin Hankin, Lecturer, School of Environmental and Marine Science Private Bag 92019 Auckland New Zealand r.hankin at auckland.ac.nz tel 0064-9-373-7599 x6820; FAX 0064-9-373-7042 as of: Thu Jan 17 13:10:00 NZDT 2002 This (linux) system up continuously for: 140 days, 19 hours, 05 minutes -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Thu, 17 Jan 2002, Robin Hankin wrote:> Dear R-ers > > I've recently upgraded to R-1.4 but I have noticed that it is slower > to load datasets than R-1.3.1: >Yes. It's a bug. It's fixed in R-patched. It's already been asked and answered at least twice on this list in the last 48 hours. -thomas -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Robin Hankin <r.hankin at auckland.ac.nz> writes:> R-1.3.1: > > system.time(a <- read.table("~/people/academics/mitchell/nzsl02.27",header=T)) > [1] 40.86 0.51 54.10 0.00 0.00> R-1.4.0: > > system.time(a <- read.table("~/people/academics/mitchell/nzsl02.27",header=T)) > [1] 293.24 30.76 478.35 0.00 0.00 > > The dataset in question is big ( 75306 x 27) but not desperately so. > Am I doing something stupid here?No. R is. This has been reported before and should be fixed in the current patch set. A temporary fix would seem to be to make sure that while (nlines < 5) loop near the start of read.table actually increments nlines in its body... -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Reasonably Related Threads
- my xen-kernel is much slower than rhel5''xen(3.0)
- 1.1 Much slower on Raspberry Pi
- [LLVMdev] Why the same code is much slower in JIT compared to separate executable?
- [LLVMdev] Why the same code is much slower in JIT compared to separate executable?
- [LLVMdev] Why the same code is much slower in JIT compared to separate executable?