Closed dplassgit closed 1 year ago
E.g., sb=sb+'a': it allocates a new string of the new (correct) size, and then assigns it to sb, but then it needs to read from the old sb.
sb=sb+'a'
sb
E.g.,
sb=sb+'a'
: it allocates a new string of the new (correct) size, and then assigns it tosb
, but then it needs to read from the oldsb
.