Avoid box allocation in ActivityTracker (dotnet/coreclr#6149)
authorJustin Van Patten <jvp@justinvp.com>
Thu, 7 Jul 2016 05:37:02 +0000 (22:37 -0700)
committerJan Kotas <jkotas@microsoft.com>
Thu, 7 Jul 2016 05:37:02 +0000 (07:37 +0200)
commit64a8acfa4959e3527183d5190891fb799bfd8e13
treeb465a1ec7b1d145be43dc5d62e14bbb5d57ae436
parent11b5b3a19fcbbf295bcc59e9d7016e279cd6351c
Avoid box allocation in ActivityTracker (dotnet/coreclr#6149)

The current implementation calls
`string.Concat(object, object, object)`, which results in a box
allocation.

Avoid the box allocation by calling `long.ToString()`, allowing
`string.Concat(string, string, string)` to be used.

Commit migrated from https://github.com/dotnet/coreclr/commit/e6ca607e9dfa0718270aec74b9c9ff6ae3296f3c
src/coreclr/src/mscorlib/src/System/Diagnostics/Eventing/ActivityTracker.cs