[R] Puzzled by what Rprof is telling me

Thomas Lumley tlumley at u.washington.edu
Tue Jun 11 20:03:23 CEST 2002


On Tue, 11 Jun 2002, Don MacQueen wrote:

> I am using Rprof() to help find ways to improve performance.
>
> I found a function whose total seconds and self seconds were large. I
> replaced it with something else. The something else had a small
> number of total seconds and self seconds. But the total time did not
> decrease.

This is strange. Are you sure that nrow isn't used by any of the functions
you call?  It's possible that your explicit use of nrow() took lots of
total seconds but few self seconds, and that another hidden use did the
reverse.

	-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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list