how to refactor nested for loop into smaller for loop assume each of them independent?

Jussi Piitulainen jussi.piitulainen at helsinki.fi
Sun Oct 9 13:33:43 EDT 2016


Chris Angelico writes:

> On Mon, Oct 10, 2016 at 12:26 AM, Dennis Lee Bieber wrote:
>> {This response is delayed as I'm waiting for the program to complete so I
>> can get the run time}
>> {Well... it's been near 24 hours and still merrily scrolling sums on my
>> console -- so I'm going to kill the running program}
>
> Eight BILLION of them. I wouldn't bother waiting for that.

Eight billion is a big number. I know from experience that computers can
compute a big number of computations in a short time. Therefore, I would
expect the computer to compute eight billion computations in a short
time. Maybe.

Apparently some big numbers are more big than others.



More information about the Python-list mailing list