SIGN IN SIGN UP

gh-143445: Optimize deepcopy for 1.04x speedup (#143449)

Gains according to pyperformance:

```
deepcopy:
Mean +- std dev: 411 us +- 2 us -> 396 us +- 3 us: 1.04x faster
Significant (t=28.94)

deepcopy_reduce:
Mean +- std dev: 4.38 us +- 0.05 us -> 4.23 us +- 0.04 us: 1.04x faster
Significant (t=20.05)
```

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
H
Heikki Toivonen committed
cea2d2475d3eec9f4fd350ef9eb2ba43da1943a5
Parent: 8cf5c4d
Committed by GitHub <noreply@github.com> on 1/8/2026, 3:28:02 PM