borealis
borealis copied to clipboard
Iterating first million numbers takes too long
This snippet of code:
while (i < 1000000) {
i = i + 1;
}
Takes 6 seconds to run, as seen in the following screenshot:
In contrast, the equivalent Python3 code takes about 100ms.
Is there any way to optimize this?