[R] slower execution in R 1.9.0
Scott Bartell
sbartel at sph.emory.edu
Fri Apr 23 00:57:26 CEST 2004
I have an R function (about 1000 lines long) that takes more than 20
times as long to run under R Windows 1.9.0 and 1.8.1 than it does under
1.7.1. Profile results indicate that the $<-.data.frame operation is
the culprit, but I don't understand exactly what that is (assignment of
data frame elements to another variable?), or why it's only a problem
under 1.8.1 and 1.9.0. Any advice?
top 5 operations under 1.9.0
self.time self.pct total.time total.pct
$<-.data.frame 110.64 93.3 110.68 93.3
FMD 5.38 4.5 118.60 100.0
DIRinf 0.54 0.5 11.82 10.0
INDinf 0.46 0.4 9.78 8.2
pweibull 0.38 0.3 0.38 0.3
top 5 operations under 1.7.1
self.time self.pct total.time total.pct
pweibull 2.62 55.7 2.62 55.7
^ 0.76 16.2 0.76 16.2
CalcDistance 0.16 3.4 1.26 26.8
FMD 0.16 3.4 4.70 100.0
matrix 0.14 3.0 0.14 3.0
- Scott Bartell
More information about the R-help
mailing list