Skip to content

Computing sums of the columns of an array

2 messages · Liaw, Andy, Brian Ripley

#
With the dimension that Martin stated, I don't see much difference:
[1] 5.28 0.13 5.46   NA   NA
[1] 1.99 0.20 2.22   NA   NA
[1] 1.97 0.25 2.28   NA   NA
[1] 1.90 0.20 2.16   NA   NA
[1] 1.53 0.22 1.75   NA   NA
[1] 1.53 0.19 1.72   NA   NA
[1] 1.51 0.19 1.70   NA   NA
[1] 1.49 0.25 1.79   NA   NA

However, I don't understand why the first try took so much longer.

Andy
#
On Fri, 5 Aug 2005, Liaw, Andy wrote:

            
I've explained that to someone else earlier in the week.  You need to get 
R's internal gc limits tuned up to match the task in hand, and on the 
first run it will often gc frequently.  I got 90 GCs the first time, 9 
the second and eventually about 7.