Regex slow on Windows Server 2008

前端 未结 3 1034
你的背包
你的背包 2021-01-13 06:53

I have a situation where my regular expressions compile extremely slowly on Windows Server 2008. I wrote a small console application to highlight this issue. The app gener

3条回答
  •  囚心锁ツ
    2021-01-13 07:14

    You can pre-compile your regexes using the Regex.CompileToAssembly method, and then you could deploy the compiled regexes to your server.

提交回复
热议问题