Personal computing discussed

Moderators: renee, SecretSquirrel, just brew it!

 
Igor_Kavinski
Minister of Gerbil Affairs
Topic Author
Posts: 2077
Joined: Fri Dec 22, 2006 2:34 am

.NET compiler targeting

Tue Sep 08, 2015 3:08 pm

There's a web.config file in the root of a website developed in ASP.NET 4.0. IIS is v8.5 and OS is Windows Server 2012 R2. Here's the section of web.config that interests me:

<system.web>
    <compilation debug="false"
        targetFramework="4.0">
    ...
    </compilation>
  </system.web>


Dotnet 4.6 is installed on the server. If I change targetFramework to 4.6, is there going to be a miraculous improvement in the performance of that website (from using the brand new RyuJIT in v4.6) ?
 
UberGerbil
Grand Admiral Gerbil
Posts: 10368
Joined: Thu Jun 19, 2003 3:11 pm

Re: .NET compiler targeting

Tue Sep 08, 2015 4:55 pm

Can't you just NGEN the appropriate pieces with the new compiler and see if it makes a difference? (It won't be exactly the same, since JIT compile time -- though reportedly much improved with RyuJIT -- is still a factor, but it will give you an idea). I assume you've got a test environment that duplicates the production sever, so why not try it and see?
 
Flying Fox
Gerbil God
Posts: 25690
Joined: Mon May 24, 2004 2:19 am
Contact:

Re: .NET compiler targeting

Tue Sep 08, 2015 5:52 pm

The default .NET framework on the 2012 R2 is already 4.5, which is an in-place upgrade from 4.0. I am not sure if 4.6 is also a direct replacement on the OS. If it is then it should be automatic.

Why not just try it? Isn't this why you have development/test servers? ;)
The Model M is not for the faint of heart. You either like them or hate them.

Gerbils unite! Fold for UnitedGerbilNation, team 2630.
 
Igor_Kavinski
Minister of Gerbil Affairs
Topic Author
Posts: 2077
Joined: Fri Dec 22, 2006 2:34 am

Re: .NET compiler targeting

Sat Sep 12, 2015 7:41 am

Flying Fox wrote:
Why not just try it? Isn't this why you have development/test servers? ;)


I would love to, except I am not supposed to be tinkering with the development server. It's being used by outsourced developers who clearly don't have a clue about dotnet framework compilation targeting. I was hoping to get a definite answer to show to them but all my searches online have turned up nothing but more confusion :S Damn Microsoft for making this so hard :evil:
 
Stranger
Graphmaster Gerbil
Posts: 1433
Joined: Thu Mar 13, 2003 8:51 pm
Location: Socialist republic of Ohio
Contact:

Re: .NET compiler targeting

Tue Oct 06, 2015 6:31 pm

Igor_Kavinski wrote:
Dotnet 4.6 is installed on the server. If I change targetFramework to 4.6, is there going to be a miraculous improvement in the performance of that website (from using the brand new RyuJIT in v4.6) ?


Likely not unless you do some rewriting. Are you using the ASYNC keyword? also are you sure you are actually CPU performance limited in you app? in most cases the performance problems are else where (in particular in the DB or are due to inefficient code)

Who is online

Users browsing this forum: No registered users and 1 guest
GZIP: On