Skip to content

Remove Optimize define#391

Merged
billwert merged 1 commit into
dotnet:masterfrom
billwert:remove-optimize
Mar 19, 2019
Merged

Remove Optimize define#391
billwert merged 1 commit into
dotnet:masterfrom
billwert:remove-optimize

Conversation

@billwert

Copy link
Copy Markdown
Contributor

Defining Optimize in the project file is not precisely the same as specifying -c Release. (For example, DEBUG is defined instead of RELEASE, so any code which has tracing will include that tracing.) Instead of continuing to chase down all the ways it is different I think just pulling this out and requiring users to pass -c Release is a good path.

Defining Optimize in the project file is not precisely the same as specifying -c Release. (For example, DEBUG is defined instead of RELEASE, so any code which has tracing will include that tracing.) Instead of continuing to chase down all the ways it is different I think just pulling this out and requiring users to pass -c Release is a good path.
@billwert

Copy link
Copy Markdown
Contributor Author

this fixes #390

@jorive jorive left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

:shipit:

@billwert
billwert merged commit 5643a3a into dotnet:master Mar 19, 2019
@adamsitnik
adamsitnik self-requested a review March 19, 2019 14:20

@adamsitnik adamsitnik left a comment

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.

@billwert
billwert deleted the remove-optimize branch March 19, 2019 17:14
@billwert

Copy link
Copy Markdown
Contributor Author

@adamsitnik good catch, will do.

billwert added a commit to billwert/performance that referenced this pull request Mar 19, 2019
In dotnet#391 I changed how `dotnet run` needs to be invoked but didn't clean
up the docs.
@billwert billwert mentioned this pull request Mar 19, 2019
billwert added a commit that referenced this pull request Mar 19, 2019
* fixup docs

In #391 I changed how `dotnet run` needs to be invoked but didn't clean
up the docs.

* remove blank line

* swap numbered list for bullets

This isn't really a set of steps, but a group of examples. Numbers
aren't necessary.
@danmoseley

Copy link
Copy Markdown
Contributor

Should there be an error or warning if I don't pass Release? Although IIRC BDN will warn.

@jorive

jorive commented Mar 20, 2019

Copy link
Copy Markdown

It should be possible to have a warning/error if Condition=" '$(Configuration)' != 'Release' ".

@billwert

billwert commented Mar 20, 2019 via email

Copy link
Copy Markdown
Contributor Author

@billwert

Copy link
Copy Markdown
Contributor Author

@danmosemsft:
// Validating benchmarks:
Assembly MicroBenchmarks which defines benchmarks references non-optimized BenchmarkDotNet.Extensions
If you own this dependency, please, build it in RELEASE.
If you don't, you can create custom config with JitOptimizationsValidator.DontFailOnError to disable our custom policy and allow this benchmark to run.
Assembly MicroBenchmarks which defines benchmarks is non-optimized
Benchmark was built without optimization enabled (most probably a DEBUG configuration). Please, build it in RELEASE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants