Re: [Rd] Why does duplicate() make deep copies?

2013-09-05 Thread Simon Urbanek
On Sep 5, 2013, at 12:31 AM, Peter Meilstrup wrote: Some experimentation with the below function should convince you that the runtime of the bit inside sys.time is proportional to size*number*times. I think it should only be proportional to number*times. The function is only manipulating a

[Rd] Why does duplicate() make deep copies?

2013-09-04 Thread Peter Meilstrup
Some experimentation with the below function should convince you that the runtime of the bit inside sys.time is proportional to size*number*times. I think it should only be proportional to number*times. The function is only manipulating a list of references to vectors and not trying to make