Cache reflection calls when running utility lints and commands.
Reduces runtime of --check-yaml command to 70% of original.
This commit is contained in:
committed by
Matthias Mailänder
parent
1a2aafa17c
commit
9dd4f938da
@@ -40,7 +40,7 @@ namespace OpenRA.Mods.Common.UtilityCommands
|
||||
var interfaces = implementingType.GetInterfaces();
|
||||
foreach (var interfaceType in interfaces)
|
||||
{
|
||||
if (!interfaceType.HasAttribute<RequireExplicitImplementationAttribute>())
|
||||
if (!Utility.HasAttribute<RequireExplicitImplementationAttribute>(interfaceType))
|
||||
continue;
|
||||
|
||||
var interfaceMembers = interfaceType.GetMembers();
|
||||
|
||||
Reference in New Issue
Block a user