Re: [R] efficiency profiling?

2008-05-02 Thread Mike Prager
esmail bonakdarian [EMAIL PROTECTED] wrote:

 Yes, I have been reading the list, the amount of messages per day
 is simply amazing, I can hardly keep up. Do most of you read this
 on the web or get it as digest? I am getting them as individual
 e-mails (thank god for filters) ... :-)

I used filters for a while.  Now, I read the R list through the
gmane Usenet interface. It appears to me to be a newsgroup,
rather than a huge collection of emails.  I find that much
easier.  See http://gmane.org/


-- 
Mike Prager, NOAA, Beaufort, NC
* Opinions expressed are personal and not represented otherwise.
* Any use of tradenames does not constitute a NOAA endorsement.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] efficiency profiling? (was: Why R is 200 times slower than Matlab ?)

2008-04-30 Thread Gabor Csardi
On Wed, Apr 30, 2008 at 06:59:38PM -0400, esmail bonakdarian wrote:
 
 This has been an interesting discussion, and brings up two questions
 for me:
 
 Is there a good collection of hints/suggestions for R language idoms in terms
 of efficiency? For instance I read not to use for-loops, so I used apply only 
 to
 later read that apply is internally implemented as a for so nothing gained
 here. Warnings about pitfalls (such as nested loops), hints, suggestions would
 be great.

Personally i like {l,t,}apply better, 1) it is more readable,
2) it takes two minutes to change it to par{L,S,}apply and then 
it runs in parallel.

 The second question - is there some sort of profiling tool available that 
 would
 make it easy to recognize where the script is spending most of its time? Might
 be especially useful for newbies like me.

See ?Rprof

G.

[...]

-- 
Csardi Gabor [EMAIL PROTECTED]UNIL DGM

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] efficiency profiling?

2008-04-30 Thread Duncan Murdoch

On 30/04/2008 6:59 PM, esmail bonakdarian wrote:

This has been an interesting discussion, and brings up two questions
for me:

Is there a good collection of hints/suggestions for R language idoms in terms
of efficiency? For instance I read not to use for-loops, so I used apply only to
later read that apply is internally implemented as a for so nothing gained
here. Warnings about pitfalls (such as nested loops), hints, suggestions would
be great.

The second question - is there some sort of profiling tool available that would
make it easy to recognize where the script is spending most of its time? Might
be especially useful for newbies like me.


See ?Rprof for the tool.  For the tips, I think you just need to hang 
around here a while.  I don't know of a nice collection (but I'm sure 
there are several.)


Duncan Murdoch

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] efficiency profiling?

2008-04-30 Thread esmail bonakdarian


 See ?Rprof for the tool.  For the tips, I think you just need to hang 
 around here a while.  I don't know of a nice collection (but I'm sure 
 there are several.)
 
 Duncan Murdoch


Hi,

thanks .. several folks pointed me to Rprof, I'll take a look.

Yes, I have been reading the list, the amount of messages per day
is simply amazing, I can hardly keep up. Do most of you read this
on the web or get it as digest? I am getting them as individual
e-mails (thank god for filters) ... :-)

Esmail

_
Back to work after baby–how do you know when you’re ready?

5797498ocid=T067MSN40A0701A
[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] efficiency profiling?

2008-04-30 Thread Duncan Murdoch

On 30/04/2008 7:47 PM, esmail bonakdarian wrote:


See ?Rprof for the tool.  For the tips, I think you just need to hang 
around here a while.  I don't know of a nice collection (but I'm sure 
there are several.)


Duncan Murdoch



Hi,

thanks .. several folks pointed me to Rprof, I'll take a look.

Yes, I have been reading the list, the amount of messages per day
is simply amazing, I can hardly keep up. Do most of you read this
on the web or get it as digest? I am getting them as individual
e-mails (thank god for filters) ... :-)


I think most read as email, but a substantial minority read it on the 
web.  You really do need filters.


Personally, I scan the subject lines, and read about 1 in 10 threads.

Duncan Murdoch

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] efficiency profiling?

2008-04-30 Thread Kingsford Jones
On Wed, Apr 30, 2008 at 4:33 PM, Duncan Murdoch [EMAIL PROTECTED] wrote:
 On 30/04/2008 6:59 PM, esmail bonakdarian wrote:
snip
  Is there a good collection of hints/suggestions for R language idoms in
 terms
  of efficiency?
snip

  See ?Rprof for the tool.  For the tips, I think you just need to hang
 around here a while.  I don't know of a nice collection (but I'm sure there
 are several.)

  Duncan Murdoch


;-) here's one:  https://stat.ethz.ch/pipermail/r-help/2005-October/080991.html


Kingsford Jones

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.