From f07a80d5a1ebda319ecb0e9413ecf280fb241630 Mon Sep 17 00:00:00 2001 From: Travis Parks Date: Wed, 1 May 2013 10:48:25 -0400 Subject: [PATCH] Eliminate RegexOptions.Compiled RegexOptions.Compiled does not seem to improve performance and actually is a bottleneck in most cases. I am removing it for the time being. I may add a flag to the FormatCompiler if it is needed in the future. --- mustache-sharp.test/Properties/AssemblyInfo.cs | 4 ++-- mustache-sharp/FormatCompiler.cs | 2 +- mustache-sharp/Properties/AssemblyInfo.cs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mustache-sharp.test/Properties/AssemblyInfo.cs b/mustache-sharp.test/Properties/AssemblyInfo.cs index ee7d29c..ea38851 100644 --- a/mustache-sharp.test/Properties/AssemblyInfo.cs +++ b/mustache-sharp.test/Properties/AssemblyInfo.cs @@ -31,5 +31,5 @@ using System.Runtime.InteropServices; // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("0.0.7.1")] -[assembly: AssemblyFileVersion("0.0.7.1")] +[assembly: AssemblyVersion("0.0.7.2")] +[assembly: AssemblyFileVersion("0.0.7.2")] diff --git a/mustache-sharp/FormatCompiler.cs b/mustache-sharp/FormatCompiler.cs index bf99be4..c81e6dc 100644 --- a/mustache-sharp/FormatCompiler.cs +++ b/mustache-sharp/FormatCompiler.cs @@ -114,7 +114,7 @@ namespace mustache } matches.Add(getUnknownTagRegex()); string match = "{{(" + String.Join("|", matches) + ")}}"; - regex = new Regex(match, RegexOptions.Compiled); + regex = new Regex(match); _regexLookup.Add(definition.Name, regex); } return regex; diff --git a/mustache-sharp/Properties/AssemblyInfo.cs b/mustache-sharp/Properties/AssemblyInfo.cs index c2029f3..c413d0b 100644 --- a/mustache-sharp/Properties/AssemblyInfo.cs +++ b/mustache-sharp/Properties/AssemblyInfo.cs @@ -34,6 +34,6 @@ using System.Runtime.CompilerServices; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.0.7.1")] -[assembly: AssemblyFileVersion("0.0.7.1")] +[assembly: AssemblyVersion("0.0.7.2")] +[assembly: AssemblyFileVersion("0.0.7.2")] [assembly: InternalsVisibleTo("mustache-sharp.test")] \ No newline at end of file