iliaa Wed May 26 12:25:42 2004 EDT
Modified files: /livedocs pregenerate.php xml_classes5.php Log: Removed debug code that made things slow. http://cvs.php.net/diff.php/livedocs/pregenerate.php?r1=1.2&r2=1.3&ty=u Index: livedocs/pregenerate.php diff -u livedocs/pregenerate.php:1.2 livedocs/pregenerate.php:1.3 --- livedocs/pregenerate.php:1.2 Tue May 25 15:07:13 2004 +++ livedocs/pregenerate.php Wed May 26 12:25:42 2004 @@ -82,7 +82,7 @@ fwrite(STDERR, "\n"); fflush(STDERR); $ts = microtime(true); - $nodes = $__node_count; + //$nodes = $__node_count; /* try to release as much memory as possible */ $page = null; @@ -102,18 +102,14 @@ $tclean = microtime(true) - $ts; $clean_time += $tclean; - fprintf(STDERR, "nav %.2fs, load %.2fs, gen %.2fs [note %.2fs], clean(%d) in %.2fs\n\n", - $tnav, $tload, - $tgen, $gen_note, $nodes, $tclean); - + fprintf(STDERR, "nav %.2fs, load %.2fs, gen %.2fs [note %.2fs], clean in %.2fs\n\n", + $tnav, $tload, $tgen, $gen_note, $tclean); +/* if ($__node_count > 0) { fwrite(STDERR, "nodes: $__node_count\n"); fflush(STDERR); } -/* XXX: dev limiter - if ($number_processed > 10) { - break; - } */ +// if ($number_processed > 10) break; } $elapsed = microtime(true) - $start_time; http://cvs.php.net/diff.php/livedocs/xml_classes5.php?r1=1.6&r2=1.7&ty=u Index: livedocs/xml_classes5.php diff -u livedocs/xml_classes5.php:1.6 livedocs/xml_classes5.php:1.7 --- livedocs/xml_classes5.php:1.6 Wed May 26 12:18:01 2004 +++ livedocs/xml_classes5.php Wed May 26 12:25:42 2004 @@ -19,7 +19,7 @@ // | PHP 5 style | // +----------------------------------------------------------------------+ // -// $Id: xml_classes5.php,v 1.6 2004/05/26 16:18:01 iliaa Exp $ +// $Id: xml_classes5.php,v 1.7 2004/05/26 16:25:42 iliaa Exp $ class Node { /* {{{ */ @@ -138,7 +138,7 @@ $this->tagname = $tagname; $this->attributes = $attributes; - @$GLOBALS['__node_count']++; + //@$GLOBALS['__node_count']++; } function compress() @@ -203,11 +203,11 @@ $this->add_child($node); } } - +/* function __destruct() { $GLOBALS['__node_count']--; } - +*/ function release() { foreach ($this->children as &$child) {