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

@@ -96,8 +96,8 @@ internal static class Config
internal static class AllowedMentions
{
internal static readonly IMention[] UsersOnly = { UserMention.All };
internal static readonly IMention[] Nothing = Array.Empty<IMention>();
internal static readonly IMention[] UsersOnly = [UserMention.All];
internal static readonly IMention[] Nothing = [];
}
internal static string CurrentLogPath => Path.GetFullPath(Path.Combine(LogPath, "bot.log"));