On Feb 12, 2008 11:04 PM, Edward Z. Yang <[EMAIL PROTECTED]> wrote: > 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()?
Sounds to me you are using old configure.php. The latest is: $Id: configure.php,v 1.33 2008/01/30 11:03:09 rquadling Exp $ LIBXML_DTDVALID is not used in this version. -Hannes