[Baypiggies] json using huge memory footprint and not releasing

Aahz aahz at pythoncraft.com
Fri Jun 15 23:30:23 CEST 2012

On Fri, Jun 15, 2012, David Lawrence wrote:
> When I load the file into json, pythons memory usage spike to about 1.8GB
> and I can't seem to get that memory to be released.  I put together a test
> case that's very simple:
> with open("test_file.json", 'r') as f:
>     j = json.load(f)

If you really need the memory released, do it in a subprocess.
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/


More information about the Baypiggies mailing list