STINNER Victor added the comment:
It works for me on Linux 64-bit:
$ python
Python 2.7.3 (default, Aug 9 2012, 17:23:57)
[GCC 4.7.1 20120720 (Red Hat 4.7.1-5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> d, i = {}, 0
>>> while (i < 10000000):
... n = i + 1
... d[n] = n
... i += 1
...
>>> import os
>>> os.system("grep VmRSS /proc/%s/status" % os.getpid())
VmRSS: 637984 kB
0
"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."
What is the exception? How much free memory do you have? If Python has not
enough memory, Windows will probably starts to move memory to the disk and the
system will becomes slower and slower.
----------
nosy: +haypo
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue19443>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com