mirror of
https://github.com/RPCS3/discord-bot.git
synced 2026-01-31 01:25:22 +01:00
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:
@@ -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")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user