Re: PyYaml

Vianello ' Norad ' Dario <[email protected]>
Newsgroups gmane.text.yaml.general
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Andrey,
	If I've correctly understood, using the low level interfaces, I can
load only a portion of the file, but i need all the file loaded, or  at
least, a way to load in sequence a little portions of the file. But the
primary question is: is it normal that parsing a 27,6 Mb yaml file
result in an istance of more than 1 Gb?
Anyway, if there is a more easy doc on this low-level interfaces, can
you please send me the link? The PyYAML documentation isn't very clear
for me on this argument.
Thanks,
Dario.


Andrey Somov ha scritto:
> Hi Dario,
> the result of yaml.load() is a complete constructed instance.
> You may need to have a look at the low-level Parser and Emitter
> interfaces, which are similar to the SAX API.
> http://pyyaml.org/wiki/PyYAMLDocumentation#Events
> 
> Andrey
> 
>> Hi everyone,
>>        I'm using PyYaml to parse a really big Yaml file, around 27,6 Mb, but,
>> when I run the program, it freezes after some minutes because it fills
>> all the ram (1 Gb). Now, I' would like to know if it's a normal
>> behaviour and if there is a way to reduce the memory usage.
>> Thank You,
>> Dario Vianello
>>
> 
> ------------------------------------------------------------------------------
> The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
> production scanning environment may not be a perfect world - but thanks to
> Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
> Series Scanner you'll get full speed at 300 dpi even with all image 
> processing features enabled. http://p.sf.net/sfu/kodak-com
> _______________________________________________
> Yaml-core mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/yaml-core
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkoKsiEACgkQE1Ols3gtlnH1iwCeL5nTLW/XPezlUdDIJeQjrsiW
7GsAnAqLasTAoUnP5JWyzEdhpCymNAQT
=2bJZ
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.