Open markfairbanks opened 8 months ago
I think this would be ideal but don't know the implications of any breaking changes for it.
Would this break using copy()
inside a function so you can perform operations by reference without affecting the global environment, or is shallow copying smart enough to spot that?
The idea is that it wouldn’t break existing uses of copy()
. It would just make it so that in the background it only copies columns when necessary.
It is possible only if we will move to reference counting, which means depending on R 4.0(?)
Per this comment https://github.com/Rdatatable/data.table/issues/5129#issuecomment-926181331 it looks like it was on the to-do list at some point. As far as I could see there wasn't an open issue referencing it.