Eryk Sun added the comment:

> My Python is 64-bit, but my computer only has 2GB physical RAM.

That explains why it takes half an hour to crash. It's thrashing on page 
faults. Adding another paging file or increasing the size of your current 
paging file should allow this to finish parsing... eventually in maybe an hour 
or two. 

The design of the parser isn't something I've delved into very much, but 
possibly the dynamic nature of Python prevents optimizing the memory footprint 
here. Or maybe no one has seen the need to optimize parsing containers (dicts, 
sets, lists, tuples) that have constant literals. This is an inefficient way to 
store 35 MiB of data, as opposed to XML, JSON, or a binary format.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26415>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to