Loading page…
An online store builds a nightly report of a hundred thousand order codes, newest first. Putting each code in front of the text copies the whole report at every step, about fifty five billion characters, and real runs in Python, Java and C plus plus show the time growing four times each time the codes double. A builder writes each character once. The lesson measures the cost in each language, explains what JavaScript hides, and shows why slices, separators and lengths need care.
You work on the nightly export of an online store.