On Fri, 6 Aug 2004, Dieter Menne wrote:
>
> Ok, found it out. Things are really speedy when you first store result in a
> vector, and cbind the vector to the data frame later.
>
> Assuming that copying is involved, this would explain to me that my first
> approach was so much slower, but I don't understand why time goes up more
> than linearily with n.
>
The garbage collection overhead and then the overhead of paging to disk
will often make the time nonlinear for problems that use a lot of memory.
-thomas
______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html