From tomas.larsson at gm.com  Mon Nov 26 18:25:10 2007
From: tomas.larsson at gm.com (tomas.larsson at gm.com)
Date: Mon, 26 Nov 2007 18:25:10 +0100 (CET)
Subject: [Rd] colnames slow (PR#10470)
Message-ID: <20071126172510.A8817282EFF8@mail.pubhealth.ku.dk>

Full_Name: Tomas Larsson
Version: 2.6.0
OS: Windows XP
Submission from: (NULL) (198.208.251.24)


This is not a bug, it is a performance issue but I think it should have an easy
fix.

I have a large matrix (about 2,000,000 by 20), when I type colnames(x) it takes
a long time to get the result.  However, if I select just the first couple of
rows of the matrix I don't have to wait for the result. See below for example.

> system.time(colnames(x))
   user  system elapsed 
   9.98    0.00   10.00 
> system.time(colnames(x[1:2,]))
   user  system elapsed 
   0.01    0.00    0.02 

Sincerely,

Tomas



[Rd] colnames slow (PR#10470)
tomas.larsson at gm.com