Closed crenshaw-dev closed 2 months ago
Issues
1 New issue
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
Fixing the test failure makes the change more costly than the original. Leaving it as-is for now.
I'm not convinced we need to deep copy these objects at all. But to be cautious, I think we can save some resources by only deep copying if we need to mutate the objects.
Here's the benchmark result:
We save a little memory and CPU.
Here's the benchmark code: