[S] Memory problem with S-PLUS 5.0?

Pierre Duchesne (duchesne@DMS.UMontreal.CA)
Thu, 19 Nov 1998 11:59:59 -0500 (EST)


Hello,

Here is a simple experiment that I tried with Splus 3.4
and Splus 5.0 on a Sun Ultra 60 with 768 M of RAM.

fun <- function()
{
apply( array(rnorm(9*10000),dim=c(3,3,10000)), 3, solve)
}

It seems to me that it is a efficient way to invert 10000 3x3
matrix.

If I look to the memory taken by Splus 3.4, it took less that 2 minutes
to do the work, and the memory taken never exceeded 20M.

However, if I use the same program under Splus 5.0, I was forced to
kill the job after 3 minutes since I was already taking more that 300 M.

PID USERNAME THR PRI NICE SIZE RES STATE TIME CPU COMMAND
21336 duchesne 1 -5 0 303M 267M run 3:42 49.51% Sqpe

My function was quite simple, without any for, and was using an
efficient function like apply().

Is it possible that something going wrong with Splus 5.0?

Thank you very much for your help.
Pierre Duchesne

-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news