|
|
|
|
|
by JoshTriplett
473 days ago
|
|
It's a cool anecdote. It's also a case study in heavyweight copies being something that shouldn't happen by default, and should require explicit annotation indicating that the engineer expects a heavyweight copy of the entire structure. |
|
1. The copy was needed initially 2. This structure wasn’t as heavy back then
… over time the code evolved so it became heavy and the copy became unnecessary. That’s harder to find without profiling to guide things