[xml] Freeing large documents extremely slow



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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
swap partition.)

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

iD8DBQFHtQhrqTO+fYacSNoRAlpsAKCJ5KahYfkcz3Sp66Cwp5mL+B3YOwCgiRMh
2LIZRnD4LgP+buDYw3biRK0=
=HejJ
-----END PGP SIGNATURE-----



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]