I'm running Debian unstable with pyyaml 3.11 which is compiled with libyaml-dev and I have libyaml-0-2 version 0.1.6-2 installed.
I observed, that loading yaml files can require insanely large amounts of memory compared to the original input file. Parsing a 11 MB yaml file needs 2.5 GB of memory for example. This is 227 times the size of the input file.
This seems more than just a bit excessive.
Is there a way to fix this? Or to work around this?