[issue19443] add to dict fails after 1,000,000 items on py 2.7.5

2013-10-31 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue19443] add to dict fails after 1,000,000 items on py 2.7.5

2013-10-31 Thread Milton Mobley
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 "bug". --

[issue19443] add to dict fails after 1,000,000 items on py 2.7.5

2013-10-30 Thread Matthew Barnett
Matthew Barnett added the comment: Works for me: Python 2.7.5, 64-bit, Windows 8.1 -- nosy: +mrabarnett ___ Python tracker ___ ___ Pyt

[issue19443] add to dict fails after 1,000,000 items on py 2.7.5

2013-10-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: > But in my opinion Python should be able to detect failure to complete an > allocation request on Windows Which failure? You're telling us it doesn't fail, it just becomes slow. (by the way, have you checked whether your machine is swapping when that happens?

[issue19443] add to dict fails after 1,000,000 items on py 2.7.5

2013-10-30 Thread Milton Mobley
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 was unusable aft

[issue19443] add to dict fails after 1,000,000 items on py 2.7.5

2013-10-30 Thread STINNER Victor
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 < 1000): ... n

[issue19443] add to dict fails after 1,000,000 items on py 2.7.5

2013-10-29 Thread Tim Peters
Tim Peters added the comment: Just another data point: runs fine on Vista, 32-bit box, Python 2.7.5. Python is consuming about 320MB when the dict is done building. -- nosy: +tim.peters ___ Python tracker __

[issue19443] add to dict fails after 1,000,000 items on py 2.7.5

2013-10-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: Works for me -- on 64-bit OS X 10.9 running Python 2.7.5 -- nosy: +rhettinger ___ Python tracker ___

[issue19443] add to dict fails after 1,000,000 items on py 2.7.5

2013-10-29 Thread Elizabeth Myers
Elizabeth Myers added the comment: Your test case, nor the one I wrote, trigger Python 2.7.5 nor 3.3.2 on Linux 64-bit: try: xrange except: xrange = range d = {} r = 1000 ctr = 0 for n in xrange(r): d[n] = n ctr += 1 assert len(d) == r assert ctr == r -- nosy: +Elizacat __

[issue19443] add to dict fails after 1,000,000 items on py 2.7.5

2013-10-29 Thread Milton Mobley
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 it was