diff options
author | andi <andi@splitbrain.org> | 2005-04-27 20:22:43 +0200 |
---|---|---|
committer | andi <andi@splitbrain.org> | 2005-04-27 20:22:43 +0200 |
commit | 2cd2db38e844b55a35cbbbf800835d6b84531308 (patch) | |
tree | 82fcb754fb1d3b303c24ffaedcc60d39160745f5 /inc/parser/lexer.php | |
parent | 18509c28d451f8d207d58002f7881f522ae84977 (diff) | |
download | rpg-2cd2db38e844b55a35cbbbf800835d6b84531308.tar.gz rpg-2cd2db38e844b55a35cbbbf800835d6b84531308.tar.bz2 |
optimized count calls in for loops
darcs-hash:20050427182243-9977f-4c1ec6ce278925147379430540eec723d109444a.gz
Diffstat (limited to 'inc/parser/lexer.php')
-rw-r--r-- | inc/parser/lexer.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/parser/lexer.php b/inc/parser/lexer.php index b625ccacc..fb42ac27e 100644 --- a/inc/parser/lexer.php +++ b/inc/parser/lexer.php @@ -107,7 +107,8 @@ class Doku_LexerParallelRegex { */ function _getCompoundedRegex() { if ($this->_regex == null) { - for ($i = 0; $i < count($this->_patterns); $i++) { + $cnt = $this->_patterns; + for ($i = 0; $i < $cnt; $i++) { // Replace lookaheads / lookbehinds with marker $pattern = preg_replace( |