Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: remove ActivityCorrelator.Current.ToString() calls in tracing #506

Merged
merged 2 commits into from
Apr 7, 2020

Conversation

Wraith2
Copy link
Contributor

@Wraith2 Wraith2 commented Apr 5, 2020

Another small one. While profiling I noticed some calls to ActivityCorrelator.Current.ToString() coming from calls to trace methods, the trace methods call ToString() on the args if logging of that method is enabled so these are just wasted string allocations for most people.

Copy link
Contributor

@David-Engel David-Engel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cheenamalhotra
Copy link
Member

Please also update on NetFx side.

@Wraith2
Copy link
Contributor Author

Wraith2 commented Apr 6, 2020

I've said repeatedly that maintaining two separate codebases for this library is not helpful. Can you please come up with a policy decision on this instead of ignoring it and repeatedly asking me to backport things to netfx that aren't going to make a difference to it.

@cheenamalhotra cheenamalhotra added the Port to NetFx Port changes to NetFx label Apr 6, 2020
@cheenamalhotra
Copy link
Member

Ok, I guess we will then tag such PRs with the tag "Port to NetFx" and create a parallel PR to be merged along with yours.

@David-Engel
Copy link
Contributor

I've said repeatedly that maintaining two separate codebases for this library is not helpful. Can you please come up with a policy decision on this instead of ignoring it and repeatedly asking me to backport things to netfx that aren't going to make a difference to it.

@Wraith2 We've said in the past that we would like to keep the code bases equivalent, when it is reasonable to do so. Thus we have consistently asked to make changes to both in previous PRs. We have been flexible about it when it does not make sense to change the netfx code or is too burdensome to do so. Long-term, we would like to have one code base and we will try to work incrementally towards that (see #504). Diverging code now makes that more difficult when someone in the future tries to reconcile differences.

@cheenamalhotra cheenamalhotra merged commit 9c9400b into dotnet:master Apr 7, 2020
@cheenamalhotra cheenamalhotra removed the Port to NetFx Port changes to NetFx label Apr 7, 2020
@cheenamalhotra cheenamalhotra added this to the 2.0.0-preview3 milestone Apr 7, 2020
@cheenamalhotra cheenamalhotra added the 📈 Performance Use this label for performance improvement activities label Apr 7, 2020
@Wraith2 Wraith2 deleted the perf-traceevent2 branch April 7, 2020 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📈 Performance Use this label for performance improvement activities
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants