This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author A. Skrobov
Recipients A. Skrobov
Date 2016-02-22.23:06:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1456182380.09.0.81920177296.issue26415@psf.upfronthosting.co.za>
In-reply-to
Content
I have a one-line module that assigns a tuple->int dictionary:

holo_table = {(0, 0, 0, 0, 0, 0, 1, 41, 61, 66, 89): 9, (0, 0, 0, 70, 88, 98, 103, 131, 147, 119, 93): 4, [35MB skipped], (932, 643, 499, 286, 326, 338, 279, 200, 280, 262, 115): 5}

When I try to import this module, Python grinds 100% of my CPU for like half an hour, then ultimately crashes with a MemoryError.

How much memory does it need to parse 35MB of data, of a rather simple structure?

Attaching the module, zipped to 10MB.
History
Date User Action Args
2016-02-22 23:06:20A. Skrobovsetrecipients: + A. Skrobov
2016-02-22 23:06:20A. Skrobovsetmessageid: <1456182380.09.0.81920177296.issue26415@psf.upfronthosting.co.za>
2016-02-22 23:06:20A. Skrobovlinkissue26415 messages
2016-02-22 23:06:19A. Skrobovcreate