If I have a long string (say 2KB) is there a way to append to it without causing a second copy of the string to be made? E.g., does str += "more text" cause me to temporarily hold two copies in memory?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
If I have a long string (say 2KB) is there a way to append to it without causing a second copy of the string to be made? E.g., does
str += "more text"
cause me to temporarily hold two copies in memory?