Displaying 1 result from an estimated 1 matches for "overcopying".
Did you mean:
overcoming
2013 Sep 05
1
Why does duplicate() make deep copies?
...e 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 changes
to the vectors themselves.
overcopying <- function(size, number, times) {
#Make a list of NUMBER vectors of SIZE, then reorder the list. The
#vectors themselves are never touched, only their references are
#moved around. If R implements "copy on write" correctly the
#elapsed time should be ~number*times.
L <-...