[dokuwiki] Fwd: performance tweak in Dokuwiki Lexer

  • From: Christopher Smith <chris@xxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Sun, 19 Apr 2009 15:00:48 +0100


On 15 Apr 2009, at 08:31, Andreas Gohr wrote:

<snip>
function. Chris since you're the author of the original function,
could you have a look at Mike's code and maybe provide a unit test?


Patch sent with two tests, one for the lexer and one for the parser.

In addition to my previous comment, splitting based on strpos will fail in circumstance like ...

acronym:  FOO
wiki text:  FOOBAR FOO

the regex will correctly match the FOO at the end, while strpos will incorrectly match the FOO in FOOBAR.

- Chris
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: