Skip to content

Commit

Permalink
Increase regex cache size (#6408)
Browse files Browse the repository at this point in the history
  • Loading branch information
benaadams authored Dec 22, 2023
1 parent 90416e5 commit b86383f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Nethermind/Nethermind.Runner/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
using System.Runtime.InteropServices;
using System.Runtime.Loader;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using System.Threading.Tasks;
#if !DEBUG
Expand Down Expand Up @@ -56,6 +57,8 @@ public static class Program

public static void Main(string[] args)
{
// Increase regex cache size as more added in log coloring matches
Regex.CacheSize = 128;
#if !DEBUG
ResourceLeakDetector.Level = ResourceLeakDetector.DetectionLevel.Disabled;
#endif
Expand Down

0 comments on commit b86383f

Please sign in to comment.