[Rd] str() with attr(*, "names") is extremely slow for long vectors

Gerhard Thallinger Gerhard.Thallinger at tugraz.at
Sun May 14 15:19:20 CEST 2006


>>>>> "MartinM" == Martin Maechler maechler at stat.math.ethz.ch
>>>>>    Sat, May 13 2006 15:16:19 +0200 writes: 

  MartinM> But have you looked at R 2.3.0-patched at all?
  MartinM> 
  MartinM> I did acknowledge that str(<long character>) had become 
  MartinM> unacceptably slow, and had implemented a simple patch 
  MartinM> almost "immediately".

Yes, I did. Here are the timings (WinXP 1.8 GHz):

  R 2.2.0

    1. 14.64  0.13 14.90    NA    NA
    2.  4.33  0.09  4.43    NA    NA
    3.  4.20  0.15  4.38    NA    NA

  R 2.3.0

    1. 65.36  0.18 66.12    NA    NA
    2. 51.75  0.21 52.55    NA    NA
    3. 51.79  0.17 52.45    NA    NA

  R 2.3.0 Patched (2006-05-11 r38037) 

    1. 44.09  0.09 44.45    NA    NA
    2. 34.96  0.08 35.66    NA    NA
    3. 34.52  0.07 34.81    NA    NA

Hth 

Gerhard

------------------------------------------------------------------------
DI Gerhard Thallinger              E-mail:  Gerhard.Thallinger at tugraz.at
Institute for Genomics and Bioinformatics   Web: http://genome.tugraz.at
Graz University of Technology               Tel:        +43 316 873 5343
Petersgasse 14/V                            Fax:        +43 316 873 5340
8010 Graz, Austria                 Map: http://genome.tugraz.at/Loc.html



More information about the R-devel mailing list