/instiki/svn

To download this project, use:
bzr branch http://golem.ph.utexas.edu/~distler/code/instiki/svn/

Viewing all changes in revision 374.

  • Committer: Jacques Distler
  • Date: 2009-03-27 07:44:49 UTC
  • Revision ID: distler@golem.ph.utexas.edu-20090327074449-9wsqkc43f23af4i8
Don't be greedy!

Maruku uses greedy Regexps in a number of places, which,
in unfavourable circumstances, can lead to exponential
slowdowns (an apparent hang).

We worked around one such bug in Revision 355. Recently,
Toby Bartels found another (in Table Header parsing).
The "real" solution seems to be to make sure the Regexps
are not greedy. (Thanks to Sam Ruby for spotting the problem!)

Reverted the workaround in Revision 355, fixed Toby's
bug, and several other similar Regexps.

expand all expand all

Show diffs side-by-side

added added

removed removed