Some performance and code optimizations (#955)

* upgrade deps, remove wrong ppu hashes

* upgrade compiler packages

will require container pull after build

* replace Regex with compiler-generated versions

* use new collection initialization syntax

* configure global defaults for regex

* bump min amd driver version

fixes #950

* add macos version check

fixes #948

* fix #954 (!sudo log date)
This commit is contained in:
Ilya
2024-05-18 18:26:34 +05:00
committed by GitHub
parent ad21597c00
commit 72dbc4074a
83 changed files with 1058 additions and 640 deletions

View File

@@ -4,6 +4,7 @@ using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using System.Threading.Tasks;
using CompatBot.Commands;
@@ -38,6 +39,9 @@ internal static class Program
{
Config.TelemetryClient?.TrackEvent("startup");
//AppDomain.CurrentDomain.SetData("REGEX_DEFAULT_MATCH_TIMEOUT", TimeSpan.FromMilliseconds(100));
Regex.CacheSize = 200; // default is 15, we need more for content filter
Console.WriteLine("Confinement: " + SandboxDetector.Detect());
if (args.Length > 0 && args[0] == "--dry-run")
{