Re: [R] can we manage memory usage to increase speed?

2005-08-02 Thread Prof Brian Ripley
On Mon, 1 Aug 2005, Haibo Huang wrote: Please refer to the following post. Which is about Windows only, not Linux. (And on Windows, the answer given is on the help page for memory.size. together with a better one.) Ed --- Mike Lawrence [EMAIL PROTECTED] wrote: Date: Mon, 1 Aug 2005

Re: [R] can we manage memory usage to increase speed?

2005-08-02 Thread Tuszynski, Jaroslaw W.
If you have a code that takes 2 weeks to run, than it might be a case of inefficient algorithm design. I was able to go from overnight runs (SELDI data analysis) to 20 minute runs by identifying single inefficient function that took most of the time, and writing it in C. Jarek

Re: [R] can we manage memory usage to increase speed?

2005-08-02 Thread Spencer Graves
And you can identify inefficient code fairly easily taking snapshots from proc.time and computing elapsed time for sections of your code. spencer graves Tuszynski, Jaroslaw W. wrote: If you have a code that takes 2 weeks to run, than it might be a case of inefficient

Re: [R] can we manage memory usage to increase speed?

2005-08-02 Thread Douglas Bates
On 8/2/05, Spencer Graves [EMAIL PROTECTED] wrote: And you can identify inefficient code fairly easily taking snapshots from proc.time and computing elapsed time for sections of your code. spencer graves Using Rprof may be a better choice. See ?Rprof Tuszynski,

Re: [R] can we manage memory usage to increase speed?

2005-08-02 Thread Thomas Lumley
On Tue, 2 Aug 2005, Spencer Graves wrote: And you can identify inefficient code fairly easily taking snapshots from proc.time and computing elapsed time for sections of your code. Or use the profiler, which makes it much easier. There was a Programmers' Niche article about it in one

Re: [R] can we manage memory usage to increase speed?

2005-08-02 Thread Zhilin Liu
Hi, Thank you all for the kind reply. I recompiled R as the previous one turned profiling off. I am using package MAANOVA, running the matest function which is a permutation test. The author did warn that it takes a long time to run. Here is one of the test results: [ Rdata]# ./R CMD Rprof

Re: [R] can we manage memory usage to increase speed?

2005-08-01 Thread Haibo Huang
Please refer to the following post. Ed --- Mike Lawrence [EMAIL PROTECTED] wrote: Date: Mon, 1 Aug 2005 00:19:06 -0300 From: Mike Lawrence [EMAIL PROTECTED] To: Briggs, Meredith M [EMAIL PROTECTED] CC: r-help@stat.math.ethz.ch Subject: Re: [R] How do you increase memeory?