Re: I'm back!

From: Date: Tue, 12 Feb 2008 22:04:51 +0000
Subject: Re: I'm back!
References: 1 2 3 4  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969378585@lists.php.net to get a copy of this message
I've attached three images to help demonstrate. graph-no-compact.png displays when I ran configure.php with the LIBXML_COMPACT flag commented out. graph-no-compact-yes-dtdvalidate.png displays when I ran configure.php with the LIBXML_COMPACT flag commented out and the LIBXML_DTDVALID flag turned on. graph-no-validation.png displays when I ran configure.php with standard flags, but $dom->validate() commented out. Notice in all of these peak memory usage is slightly over 1 GB, and at various points the CPU maxes out (usually during the XInclude phase; and max-out means 50%, since I'm on a dual-core system). These test were run using a home-compiled PHP 5.3.0, with libxml version 2.6.31. (the optimization was made available on 2.6.21). In all cases, the LIBXML_COMPACT flag doesn't seeem to make any difference. As a point of reference, I was wondering what the LIBXML_DTDVALID flag does. I mean, aren't we already validating it when we use $dom->validate()? Thanks -- Edward Z. Yang GnuPG: 0x869C48DA HTML Purifier <http://htmlpurifier.org> Anti-XSS Filter [[ 3FA8 E9A9 7385 B691 A6FC B3CB A933 BE7D 869C 48DA ]]

« previous php.doc (#969378585) next »