Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which options are the most performance way of publishing asp.net website project - deployment

I am asking in terms of performance

Which would run fastest on the server (windows server 2012 r2 - 24 cores - 64 gb ram) - serving pages fastest way - reducing load times

Asp.net website project , c# , .net 4.5 , visual studio 2013 update 3

I don't need site to be updated-able

I don't care how many or how big files to be deployed

Here the options available

enter image description here

like image 628
MonsterMMORPG Avatar asked Oct 20 '14 03:10

MonsterMMORPG


People also ask

What is publishing in asp net?

In ASP.NET when you publish a Visual Studio web project MSBuild is used to drive the entire process. The project file (. csproj or . vbproj) is used to gather the files that need to be published as well as perform any updates during publish (for example updating web. config).


1 Answers

From my understanding:

  • Delete all existing files prior to publishing will prevent old/stale files from previous publish runs from hanging around. Saves some disk space and keeps things clean. No significant performance impact (unless you start to run out of disk space).
  • Precompile during publishing is probably the largest performance gain. If not checked, code backing your pages/views will be compiled when first hit, causing a delay for the first user to hit each page.
  • Allow precompiled site to be updatable. Without setting this checkbox, pages and user controls (.aspx, .ascx, and .master files) are copied as-is to the target folder and can be updated as text files without recompiling the project. Otherwise, the HTML markup for pages and user controls is removed and compiled into the assembly output. http://msdn.microsoft.com/en-us/library/hh475319(v=vs.110).aspx This would likely cause a very minor performance hit, as the additional files must be opened and processed.
  • Merge options Merging files into a single assembly would result in the least number of separate files to be processed at runtime. I have not found documentation on the performance impact, but I suspect a single assembly would allow for a minor performance improvement.
like image 154
Eric J. Avatar answered Sep 19 '22 13:09

Eric J.