Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 969113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T02:35:37+00:00 2026-05-16T02:35:37+00:00

How much performance gain (if any) can a windows service gain between a debug

  • 0

How much performance gain (if any) can a windows service gain between a debug build and release build and why?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T02:35:38+00:00Added an answer on May 16, 2026 at 2:35 am

    For managed code, unless you have a lot of stuff conditionally compiled in for DEBUG builds there should be little difference – the IL should be pretty much the same. The Jitter generates differently when run under the debugger or not – the compilation to IL isn’t affected much.

    There are some things the /optimize does when compiling to IL, but they aren’t particularly aggressive. And some of those IL optimizations will probably be handled by the jitter optimizations, even if they aren’t optimized in the IL (like the removal of nops).

    See Eric Lippert’s article http://blogs.msdn.com/ericlippert/archive/2009/06/11/what-does-the-optimize-switch-do.aspx for details:

    The /optimize flag does not change a huge amount of our emitting and generation logic. We try to always generate straightforward, verifiable code and then rely upon the jitter to do the heavy lifting of optimizations when it generates the real machine code. But we will do some simple optimizations with that flag set.

    Read Eric’s article for information about /optimize does do differently in IL generation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How much is the actual memory / performance gain in an ASP.NET MVC controller
How much of a performance penalty are you paying when going to .Net from
I am just wondering how much of a performance will you lose by using
How much does the garbage collector affect performance when working with lots of objects
Much of our C# release code is built with the 'Optimize code' option turned
Much like how the video tag can provide multiple source attributes so an mp4
I did some Criterion benchmarks to estimate how much performance I lose by running
I have created a user defined function to gain performance with queries containing 'WHERE
Are there any more generic tools that can compile or basically merge multiple PHP
I have a C#/WCF application (hosted in windows service) which was deployed and tested

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.