Skip to content
Prev 33592 / 63424 Next

10x slower merge in mac 2.9.1 vs. 2.9.0 (PR#13890)

Rick,

I'm sorry, but I cannot reproduce it. You didn't supply sessionInfo()  
and the actual data, so all I can do is guess, but according to your  
description this test case shows no difference:

set.seed(1)
n=10000
d1 
= 
data 
.frame 
(seqn 
= 
as 
.integer 
(runif 
(n 
)*n 
),a 
= 
rnorm 
(n 
),b 
= 
rnorm 
(n 
),c 
= 
rnorm 
(n),d=rnorm(n),e=rnorm(n),f=rnorm(n),g=rnorm(n),h=rnorm(n),i=rnorm(n))
d2 
= 
data 
.frame 
(seqn 
= 
as 
.integer 
(runif 
(n 
)*n 
),a 
= 
rnorm 
(n 
),b 
= 
rnorm 
(n 
),c 
= 
rnorm 
(n),d=rnorm(n),e=rnorm(n),f=rnorm(n),g=rnorm(n),h=rnorm(n),i=rnorm(n))
system.time(merge(d1,d2,by="seqn",all.x=TRUE))

R 2.9.1:
 > system.time(merge(d1,d2,by="seqn",all.x=TRUE))
    user  system elapsed
   0.150   0.067   0.217

R 2.9.0:
 > system.time(merge(d1,d2,by="seqn",all.x=TRUE))
    user  system elapsed
   0.148   0.068   0.216

To substantiate your claim, please provide a reproducible example as  
well as sessionInfo() [and details on how you run it - GUI, CLI, ...],  
but I suspect the difference may be in your data, not R.

Thanks,
Simon
On Aug 12, 2009, at 12:25 , richard_stahlhut at urmc.rochester.edu wrote: