Replies: 4 comments
-
You don't specify what is in the loop, but if you're doing anything that takes a moderate amount of time two billion times, it is going to take a while. Say something takes just a millisecond; do it fifty times and you won't notice. Do it two billion times and it's 40 minutes to complete. |
Beta Was this translation helpful? Give feedback.
-
Calc is an interpreted language, not compiled. On Apple silicon M1 Max:
165.5 seconds. |
Beta Was this translation helpful? Give feedback.
-
We have added it as a TODO to consider a JIT for calc in version 3. See comment 1755671627. We will close this discussion here and continue it in issue #103 if you wish to post follow up matters. Thanks for raising this issue. |
Beta Was this translation helpful? Give feedback.
-
I note that the original requester posted with a brand new account and then deleted that account. |
Beta Was this translation helpful? Give feedback.
-
for(i=1;i<N;i++)
If
N = 2147483647
, it is too slow to complete, I have to cancel it. With small N, it is quite fast.Beta Was this translation helpful? Give feedback.
All reactions