Hacker News new | comments | show | ask | jobs | submit login

Essentially all JS engines implement string concatenation lazily as ropes so there isn't much difference.



Well, you can do it in O(log(n)) time instead of O(n) time. But n is unlikely to be large enough for this to even matter a little bit.




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: