[Mono-dev] Performance of compiled regular expressions?
Daniel Lo Nigro
lists at dan.cx
Mon Dec 3 23:10:21 UTC 2012
Some of the regular expressions in MarkdownSharp look very complex and I
wouldn't be surprised if the Mono engine has trouble with them.
If MarkdownSharp is where most of your performance loss is coming from,
have you considered caching the HTML output so the parsing doesn't have to
happen on every page load? On an ASP.NET website you should be able to use
the output cache to handle caching. Alternatively, if your site's content
is in a database, you could have a column for the Markdown source and a
column for the HTML output, and just regenerate the HTML whenever a post is
Just throwing some ideas around :)
On Tue, Dec 4, 2012 at 2:25 AM, Rodrigo Kumpera <kumpera at gmail.com> wrote:
> Mono's regex engine cannot compile a lot of expressions and it might be
> your case.
> In such scenarios it silently fallback to the interpreter.
> On Sun, Dec 2, 2012 at 9:20 PM, Jordan Earls <earlz at lastyearswishes.com>wrote:
>> Is there anything I can do to mitigate this problem? I'm using the
>> latest stable version of Mono (Arch Linux) on a 64-bit platform. Is it
>> true also that regular expression should now be on par with .Net's
>> implementation? From what I understand, mono compiles them to IL
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-devel-list