Re: [Rd] Slow do.call when having an error

2012-05-29 Thread Prof Brian Ripley
On 29/05/2012 09:57, Alon Wasserman wrote: Hi, We've encountered a difference in running time between a straight function call and the same call using do.call when the called function generated an error. We've isolated the problem to the following small reproducible example: Consider the followi

[Rd] Slow do.call when having an error

2012-05-29 Thread Alon Wasserman
Hi, We've encountered a difference in running time between a straight function call and the same call using do.call when the called function generated an error. We've isolated the problem to the following small reproducible example: Consider the following function: foo <- function(nr = 2e6, nc=3,