Skip to content
This repository was archived by the owner on Nov 13, 2026. It is now read-only.

Do not convert method to a string if logging is disabled - #1450

Merged
MichalStrehovsky merged 2 commits into
dotnet:masterfrom
MichalStrehovsky:noToString
Jul 1, 2016
Merged

MichalStrehovsky merged 2 commits into
dotnet:masterfrom
MichalStrehovsky:noToString

Conversation

@MichalStrehovsky

Copy link
Copy Markdown
Member

We need a proper logging infrastructure as a long term fix, but this shaves off 8% of the compilation time for Hello World, so worth it on it's own...

string methodName = method.ToString();
Log.WriteLine("Compiling " + methodName);

if (Log != TextWriter.Null)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

_options.Verbose may be better.

@jkotas

jkotas commented Jun 30, 2016

Copy link
Copy Markdown
Member

LGTM otherwise

@MichalStrehovsky
MichalStrehovsky merged commit 6fba500 into dotnet:master Jul 1, 2016
@MichalStrehovsky
MichalStrehovsky deleted the noToString branch July 1, 2016 20:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants