Here, .SD == dt, but deep copied. And following that, all the columns from RHS are once again deep copied (/ duplicated). I think we can avoid this by shallow copying .SD in those scenarios.
Can't really think of a scenario when this'd pose a problem..
Here,
.SD == dt
, but deep copied. And following that, all the columns fromRHS
are once again deep copied (/ duplicated). I think we can avoid this by shallow copying.SD
in those scenarios.Can't really think of a scenario when this'd pose a problem..