Re: [Rd] Extreme slowdown with named vectors. A bug?

2006-10-07 Thread Henrik Bengtsson
Thank *you* for identifying the source of the problem and fixing. :) /Henrik On 10/6/06, Duncan Murdoch [EMAIL PROTECTED] wrote: On 10/6/2006 6:20 PM, Henrik Bengtsson wrote: Tried the following with R --vanilla on the Rv2.4.0 release (see details at the end). I think the script and its

[Rd] Extreme slowdown with named vectors. A bug?

2006-10-06 Thread Henrik Bengtsson
Tried the following with R --vanilla on the Rv2.4.0 release (see details at the end). I think the script and its comments speaks for itself, but the outcome is certainly not wanted. for (n in 58950:58970) { cat(n=, n, \n, sep=); # Clean up first rm(names, x, y); gc(); # Create a named

Re: [Rd] Extreme slowdown with named vectors. A bug?

2006-10-06 Thread Charles C. Berry
Another example: avec - 1:55000 names(avec) - as.character(avec) system.time(avec[names(avec)[1:39045]]) [1] 0.06 0.00 0.07 NA NA system.time(avec[names(avec)[1:39046]]) [1] 23.89 0.00 23.94NANA version _ platform i386-pc-mingw32 arch i386 os

Re: [Rd] Extreme slowdown with named vectors. A bug? (PR#9280)

2006-10-06 Thread murdoch
On 10/6/2006 6:20 PM, Henrik Bengtsson wrote: Tried the following with R --vanilla on the Rv2.4.0 release (see details at the end). I think the script and its comments speaks for itself, but the outcome is certainly not wanted. I see a similar effect to what you're describing. I also see it

Re: [Rd] Extreme slowdown with named vectors. A bug?

2006-10-06 Thread Duncan Murdoch
On 10/6/2006 6:20 PM, Henrik Bengtsson wrote: Tried the following with R --vanilla on the Rv2.4.0 release (see details at the end). I think the script and its comments speaks for itself, but the outcome is certainly not wanted. I think this is fixed now in R-devel and R-patched. Thanks for