in reply to Re: Factorial algorithm execution time
in thread Factorial algorithm execution time

The reason BigInt was there was to allow for calculations of 1000! or larger (which was the original intent). However, I don't see how this alone could explain the timing differences. For example, in my original code, the recursive function

The non-recursive function

In other words, are you saying that memory allocation for one extra BigInt is that slow??
  • Comment on Re: Re: Factorial algorithm execution time