From Gerhard.Thallinger at tugraz.at  Sun May 14 15:19:20 2006
From: Gerhard.Thallinger at tugraz.at (Gerhard Thallinger)
Date: Sun, 14 May 2006 15:19:20 +0200
Subject: [Rd] str() with attr(*,
	"names") is extremely slow for long vectors
Message-ID: <000001c67759$03ceff90$0400a8c0@mobilix>

>>>>> "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



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