From c0b44113371bd40c74b90b0e49dc0ff63e672a4f Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Wed, 12 Oct 2016 20:09:20 +0200 Subject: [PATCH] reduce search depth when splitting word sets Too many out-of-memory conditions with the current algorithm. --- lib/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lib.php b/lib/lib.php index 092965ba..e14f52f9 100644 --- a/lib/lib.php +++ b/lib/lib.php @@ -55,7 +55,7 @@ function getWordSets($aWords, $iDepth) { $aResult = array(array(join(' ', $aWords))); $sFirstToken = ''; - if ($iDepth < 8) { + if ($iDepth < 7) { while (sizeof($aWords) > 1) { $sWord = array_shift($aWords); $sFirstToken .= ($sFirstToken?' ':'').$sWord; -- 2.45.2