Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.
oatkiller edited this page Sep 13, 2010 · 3 revisions

built a string without making lots of copies through concatenation

(function () {

o.string('a','b','c','d'); // makes only 1 copy in memory, i guess
'a' + 'b' + 'c'; // makes at least 3 copies in memory

})();

more

Clone this wiki locally