From d48541827865057df062e87ef5722addcea32cd4 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Thu, 20 Sep 2012 16:04:54 +1000 Subject: [PATCH] More documentation for node count limit Change-Id: I6b35ee3ee6b9f8a84e997bbf09aa72c807caf71e --- includes/DefaultSettings.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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; -- 2.20.1