4 ms·
Generating intermediate strings is much less expensive than painting to the DOM multiple times.
by rattray 6y ago
Generating intermediate strings is much less expensive than painting to the DOM multiple times.
- brabel 6y agoI doubt it very much. The user will see nothing until all your Strings are in memory (taking up unnecessary RAM). Update the DOM and it will be instantaneous (most of it probably won't be visible in the DOM, so likely to be very cheap as well).