Re: [Rd] number of copies

2011-10-03 Thread Simon Urbanek
On Oct 3, 2011, at 2:43 PM, Terry Therneau wrote: > > On Mon, 2011-10-03 at 12:31 -0400, Simon Urbanek wrote: >>> Thanks. I was hoping that x[,sorted] would act like "double(n)" >> does in a .C call, and have no extra copies made since it has no local >> assignment. >> >> Yes it does act the s

Re: [Rd] number of copies

2011-10-03 Thread William Dunlap
> -Original Message- > From: r-devel-boun...@r-project.org [mailto:r-devel-boun...@r-project.org] On > Behalf Of Terry Therneau > Sent: Monday, October 03, 2011 11:44 AM > To: Simon Urbanek > Cc: r-devel@r-project.org > Subject: Re: [Rd] number of copies > > > On Mon, 2011-10-03 at 12:31

Re: [Rd] number of copies

2011-10-03 Thread Terry Therneau
On Mon, 2011-10-03 at 12:31 -0400, Simon Urbanek wrote: > > Thanks. I was hoping that x[,sorted] would act like "double(n)" > does in a .C call, and have no extra copies made since it has no local > assignment. > > Yes it does act the same way, you get an extra copy with double(n) as > well - th

Re: [Rd] number of copies

2011-10-03 Thread Simon Urbanek
Terry, On Oct 3, 2011, at 10:32 AM, Terry Therneau wrote: > 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)

[Rd] number of copies

2011-10-03 Thread Terry Therneau
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,

Re: [Rd] serialize/unserialize vector improvement

2011-10-03 Thread luke-tierney
It's on my list to look at but I may not get to it for a couple of weeks. Someone else may get there earlier. Best, luke On Mon, 3 Oct 2011, Michael Spiegel wrote: Any thoughts? I haven't heard any feedback on this patch. Thanks! --Michael On Wed, Sep 28, 2011 at 3:10 PM, Michael Spiegel w

Re: [Rd] serialize/unserialize vector improvement

2011-10-03 Thread Michael Spiegel
Any thoughts? I haven't heard any feedback on this patch. Thanks! --Michael On Wed, Sep 28, 2011 at 3:10 PM, Michael Spiegel wrote: > Hi folks, > > I've attached a patch to the svn trunk that improves the performance > of the serialize/unserialize interface for vector types. The current > implem