I made this question asking if it is possible to recover the source code of a pure JavaScript function. I have the answer to the question now, i.e., I have a code that (I believe) works in all cases (which I already edited on the question). Now, I want to ask a similar question: how can this function be optimized? For example, I'd want to know if that kind of tree-mashing concatenations could be improved (with a Rope structure, perhaps), or if it would be wasteful (maybe JS engines already implement fast concatenation).
How do I proceed? Do I edit that question to become the new one I want to ask? Do I delete this and create a new one (perhaps on Code Review SO)? Or do I answer my own question and create a new one?