From therneau at mayo.edu  Mon Oct  3 16:32:37 2011
From: therneau at mayo.edu (Terry Therneau)
Date: Mon, 03 Oct 2011 09:32:37 -0500
Subject: [Rd] number of copies
Message-ID: <1317652357.979.25.camel@nemo>

 I'm looking at memory efficiency for some of the survival code.  The
following fragment appears in coxph.fit
    coxfit <- .C("coxfit2", iter=as.integer(maxiter),
                   as.integer(n),
                   as.integer(nvar), stime,
                   sstat,
                   x= x[sorted,] ,
	      ...

Does this make a second copy of x to pass to the routine (my
expectation) or will I end up with 3: x and x[sorted,] in the local
frame of reference, and another due to dup=TRUE?

Terry T.



[Rd] number of copies
Terry Therneau