From: Tim Starling Date: Thu, 20 Sep 2012 06:04:54 +0000 (+1000) Subject: More documentation for node count limit X-Git-Tag: 1.31.0-rc.0~22327 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=d48541827865057df062e87ef5722addcea32cd4;p=lhc%2Fweb%2Fwiklou.git More documentation for node count limit Change-Id: I6b35ee3ee6b9f8a84e997bbf09aa72c807caf71e --- diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 2fa0c57a54..98b45895f1 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -3224,8 +3224,13 @@ $wgMaxTocLevel = 999; $wgMaxPPNodeCount = 1000000; /** - * A complexity limit on template expansion: the maximum number of nodes - * generated by Preprocessor::preprocessToObj() + * A complexity limit on template expansion: the maximum number of elements + * generated by Preprocessor::preprocessToObj(). This allows you to limit the + * amount of memory used by the Preprocessor_DOM node cache: testing indicates + * that each element uses about 160 bytes of memory on a 64-bit processor, so + * this default corresponds to about 155 MB. + * + * When the limit is exceeded, an exception is thrown. */ $wgMaxGeneratedPPNodeCount = 1000000;