summaryrefslogtreecommitdiff
path: root/inc/init.php
diff options
context:
space:
mode:
authorMichael Hamann <michael@content-space.de>2010-11-15 22:36:26 +0100
committerMichael Hamann <michael@content-space.de>2010-11-15 22:36:26 +0100
commit4753bcc0e2fd9417e885e128e8c9ab4bfc566c32 (patch)
tree9b24c39acab8046d902b64b9f5b25812ac3a7f29 /inc/init.php
parente5e503830f067ce7305e22eac58c78c2f4a007d2 (diff)
downloadrpg-4753bcc0e2fd9417e885e128e8c9ab4bfc566c32.tar.gz
rpg-4753bcc0e2fd9417e885e128e8c9ab4bfc566c32.tar.bz2
Indexer improvement: regex instead of arrays for lines
When updating a single line that line was split into an array and in a loop over that array one entry was removed and afterwards a new one added. Tests have shown that using a regex for doing that is much faster which can be easily explained as that regex is very simple to match while a loop over an array isn't that fast. As that update function is called for every word in a page the impact of this change is significant.
Diffstat (limited to 'inc/init.php')
0 files changed, 0 insertions, 0 deletions