DLL deployment increases startup time of Sitecore site <p>We have a Sitecore 6.6 instance which is used to host multiple sites. It is hosted in IIS 7.5. We developed custom Sitecore sublayouts and pipelines which are used across websites.</p> <p>When any dll is deployed in bin folder, the Sitecore site takes long time to startup (8-10 mins). But when IIS is reset, startup time is less (30-40 seconds).</p> <p>What could be the reason for application startup time to be more for DLL deployment than IIS Reset ? Any suggestions to improve the application startup time for DLL deployment ? </p> <p><strong>Update 1:</strong> The startup time after DLL deployment impacts our build process as it increases the overall build deployment time in all environments (DEV,STG,LIVE). </p> <p>Profiling snapshot of w3wp process revealed two major hotspots:</p> <ol> <li>Sitecore.Threading.Semaphore.P</li> <li>Sitecore.IO.FileWatcher.Worker</li> </ol> <p><strong>Update 2:</strong> After following the deployment suggested by Vicent, profiling snapshot of w3wp process revealed major hotspot at </p> <p>Sitecore.Web.UI.WebControls.Sublayout.GetUserControl(Page)</p> <p>Further analysis of memory dump showed that thread was waiting for JIT compilation of newly deployed DLL.</p>