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 <>
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.
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: <>
2016-02-27 08:00:59serhiy.storchakalinkissue26415 messages
2016-02-27 08:00:58serhiy.storchakacreate