On 08/04/2012 19:37, Tim Hesterberg wrote:
In base/R/tabulate.R, tabulate() calls .C("R_tabulate";
I suggest adding DUP = FALSE to that call.

We can do that. Note that R-patched already does less copying[*], but adding DUP=FALSE may avoid one copy of 'dup' if it is an integer vector. We can avoid another for a factor ....

[*] tracemem() is still reporting 'copies' that are not full duplications.

--
Brian D. Ripley,                  rip...@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to