I am trying to run many iterations of a simulation in S-plus, and am finding that the time taken per iteration increases almost exponentially. I have tried to write the code as efficiently as I can, with minimal use of for loops, vector arithmetic wherever possible, and reusing datasets where feasible. I understand that this phenomenon has something to do with the paging in S-plus's memory management system. Is there any way to keep the execution time constant ?
Thanks,
Alan Herschtal
Biostatistician
Centre for Biostatistics and Clinical Trials
Peter MacCallum Cancer Centre
Ph: 9656 3639
|