From 9c9a2aec614582078cc06aea921ac4a3bc32eeab Mon Sep 17 00:00:00 2001 From: twanvl Date: Wed, 3 Sep 2008 14:39:00 +0000 Subject: [PATCH] Added note that in_context is slow git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1195 0fc631ac-6414-0410-93d0-97cfa31319b6 --- doc/function/replace.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/function/replace.txt b/doc/function/replace.txt index d8131251..dbab4446 100644 --- a/doc/function/replace.txt +++ b/doc/function/replace.txt @@ -15,6 +15,9 @@ When the @replace@ is used many times with the same @match@ or @in_context@ valu > my_replace("input") # called many times This way the regular expression is compiled only once. +Note: Avoid using @in_context@, since it is quite slow. +Consider using lookahead and lookbehind assertions first if possible. + --Parameters-- ! Parameter Type Description | @input@ [[type:string]] String to replace in.