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
@@ -162,7 +162,7 @@ namespace OpenRA
|
||||
|
||||
static void GetActionUsage(string key, Action<Utility, string[]> action)
|
||||
{
|
||||
var descParts = action.Method.GetCustomAttributes<DescAttribute>(true)
|
||||
var descParts = Utility.GetCustomAttributes<DescAttribute>(action.Method, true)
|
||||
.SelectMany(d => d.Lines).ToArray();
|
||||
|
||||
if (descParts.Length == 0)
|
||||
|
||||
Reference in New Issue
Block a user