Milton Mobley added the comment:
I now believe the problem of slow execution is caused by performance of the
Windows 7 page file, and not by a Python bug. Others reported that similar
tests worked on Windows 8.1 and various Linux systems. So I request to close or
withdraw the Python &quo
Milton Mobley added the comment:
I followed the suggestion of email responders to use xrange instead of while,
and observed that 32-bit Suse Linux got past 44,000,000 adds before exiting
with "Memory Error", while 64-bit Windows 7 slowed down markedly after
22,000,000 adds and wa
New submission from Milton Mobley:
d, i = {}, 0
while (i < 1000):
n = i + 1
d[n] = n
i += 1
On Py 2.7.5 (windows7, x64, 4GB ram) this program slowed down obviously after
passing 1,000,000 adds and never completed or raised an exception.
Windows performance monitor showed