Check why there's both MethodCall.ToString
and MethodCall.Format
, and whether we can drop one of them (ideally including MethodCall.SetFileInfo
)
#503
Milestone
According to #500, .NET 4.7.1 has a regression that makes calls to
new StackTrace()
super costly. Moq only instantiates theStackTrace
class for debugging purposes only, for the use in one of two formatting methods ofMethodCall
.Why does
MethodCall
have two different formatting methods? Wouldn't a single one suffice? Ideally, we'd discover that the one usingStackTrace
information is the less frequently used one and can be replaced with the more commonly used one. ThenStackTrace
instantiation would become redundant and the .NET 4.7.1 performance issue evaporates.The text was updated successfully, but these errors were encountered: