Skip to content

Latest commit

 

History

History
3 lines (2 loc) · 439 Bytes

performance.md

File metadata and controls

3 lines (2 loc) · 439 Bytes

Performance

Due to having to allocate memory and copy the data structure whenever any change is made, this can potentially lead to a large number of extra operations having to be performed depending on the type and number of changes. To demonstrate the difference, here is a test run. Doing memory allocation and copy on large strings can be expensive even on a shallow object.