-
Notifications
You must be signed in to change notification settings - Fork 293
Closed
Description
The TryGetDataSeries method in Metric class has a validation of dimension name achieving via a util class. The call to this method is quite expensive due to string allocation/conversions in Invariant() method - Invariant($"{nameof(dimensionValues)}[{d}]")
Proposal is to modify code to avoid this computation unless necessary. (neccessary = dimension is invalid, which is not the common case)