Author serhiy.storchaka
Recipients A. Skrobov, christian.heimes, eryksun, paul.moore, rhettinger, serhiy.storchaka, steve.dower, tim.golden, zach.ware
Date 2016-02-27.08:00:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1456560059.51.0.944843620302.issue26415@psf.upfronthosting.co.za>
In-reply-to
Content
I though this might be tokenizer issue, but this is just large memory consumption for AST tree. Simpler example:

./python -c 'import ast; ast.parse("0,"*1000000, mode="eval")'

It takes over 450MB of memory on 32-bit system, over 450 bytes per tuple item. Increase the multiplier to 10000000 leads to swapping and failing with MemoryError.

Of course it would be nice to decrease memory consumption, but this looks rather as new feature.
History
Date User Action Args
2016-02-27 08:00:59serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, paul.moore, christian.heimes, tim.golden, zach.ware, eryksun, steve.dower, A. Skrobov
2016-02-27 08:00:59serhiy.storchakasetmessageid: <1456560059.51.0.944843620302.issue26415@psf.upfronthosting.co.za>
2016-02-27 08:00:59serhiy.storchakalinkissue26415 messages
2016-02-27 08:00:58serhiy.storchakacreate