[xml] Freeing large documents extremely slow
- From: "Edward Z. Yang" <edwardzyang thewritingpot com>
- To: xml gnome org
- Subject: [xml] Freeing large documents extremely slow
- Date: Thu, 14 Feb 2008 22:35:07 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Over at phpdoc (the PHP Documentation Project), we regularly deal with
very large XML files that occupy approximately 400-500 MB in the RAM.
Lower-end, low RAM systems (the two sample ones we've seen were
single-core, with 256-512 MB physical memory, so they have to use the
What appears to happen is that the allocation of memory goes reasonably
quickly, but then when the PHP libxml extension attempts to deallocate
the memory with xmlFreeDoc(), the system hangs, and we need to send a
SIGINT to terminate the process.
Any ideas why this may be happening? Also, would this be a bug in the
PHP XML bindings, or libxml itself?
Edward Z. Yang GnuPG: 0x869C48DA
HTML Purifier <http://htmlpurifier.org> Anti-XSS Filter
[[ 3FA8 E9A9 7385 B691 A6FC B3CB A933 BE7D 869C 48DA ]]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
] [Thread Prev