chore: set COMPlus_ETWEnabled=0 in release builds

This might fix extremely bad performance in some algorithms on insider builds
This commit is contained in:
goaaats 2022-06-22 02:23:08 +02:00
parent 06fa1a64a2
commit da793ac42c
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B

View file

@ -44,6 +44,11 @@ int InitializeClrAndGetEntryPoint(
SetEnvironmentVariable(L"DOTNET_legacyCorruptedStateExceptionsPolicy", L"1");
SetEnvironmentVariable(L"COMPLUS_ForceENC", L"1");
#if NDEBUG
// This might fix extremely bad performance in some algorithms on insider builds
SetEnvironmentVariable(L"COMPlus_ETWEnabled", L"0");
#endif
wchar_t* dotnet_path;
wchar_t* _appdata;