Difference between detach().clone() and clone().detach()

the real answer to this is here:


Basically .detach().clone() is the one you should do and the difference is essentially negligible. Operationally they are essentially equivalent with the one I mentioned being slightly more efficient but probably negligible.

1 Like