{"id":4344,"date":"2008-06-16T15:19:00","date_gmt":"2008-06-16T15:19:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/webdev\/2008\/06\/16\/anti-virus-programs-can-affect-vs-build-performance\/"},"modified":"2008-06-16T15:19:00","modified_gmt":"2008-06-16T15:19:00","slug":"anti-virus-programs-can-affect-vs-build-performance","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/dotnet\/anti-virus-programs-can-affect-vs-build-performance\/","title":{"rendered":"Anti-virus programs can affect VS build performance"},"content":{"rendered":"<p class=\"MsoNormal\"><font face=\"Calibri\" size=\"3\">We have had complaints from some customers saying that their Web&nbsp;Project build performance with VS is very slow and it turns out that for some of the complaints the actual issue was anti-virus programs running on their machines. <\/font><\/p>\n<p class=\"MsoNormal\"><font face=\"Calibri\" size=\"3\">So, how do anti-virus programs affect VS build? <\/font><\/p>\n<p class=\"MsoNormal\"><font face=\"Calibri\" size=\"3\">Please take a look at the following snippet from <\/font><a href=\"http:\/\/weblogs.asp.net\/scottgu\"><font face=\"Calibri\" size=\"3\">ScottGu&#8217;s blog<\/font><\/a><font face=\"Calibri\" size=\"3\"> to understand why!<\/font><\/p>\n<p class=\"MsoNormal\"><b><i><u><font size=\"3\"><font face=\"Calibri\">Watch out for Virus Checkers, Spy-Bots, and Search\/Indexing Tools<\/p>\n<p><\/font><\/font><\/u><\/i><\/b><\/p>\n<p class=\"MsoNormal\"><i><font size=\"3\"><font face=\"Calibri\">VS hits the file-system a lot, and obviously needs to reparse any file within a project that has changed the next time it compiles.<span>&nbsp; <\/span>One issue I&#8217;ve seen reported several times are cases where virus scanners, spy-bot detecters, and\/or desktop search indexing tools end up monitoring a directory containing a project a little too closely, and continually change the timestamps of these files (they don&#8217;t alter the contents of the file &#8211; but they do change a last touched timestamp that VS also uses).<span>&nbsp; <\/span>This then causes a pattern of: you make a change, rebuild, and then in the background the virus\/search tool goes in and re-searches\/re-checks the file and marks it as altered &#8211; which then causes VS to have to re-build it again.<span>&nbsp; <\/span>Check for this if you are seeing build performance issues, and consider disabling the directories you are working on from being scanned by other programs.<span>&nbsp; <\/span>I&#8217;ve also seen reports of certain Spybot utilities causing extreme slowness with VS debugging &#8211; so you might want to verify that you aren&#8217;t having issues with those either.<\/p>\n<p><\/font><\/font><\/i><\/p>\n<p class=\"MsoNormal\"><font face=\"Calibri\" size=\"3\">If you are running into slowness with VS builds please try to exclude your directories from being scanned by anti-virus programs and see if it helps to improve the build performance. <\/font><\/p>\n<p class=\"MsoNormal\"><font face=\"Calibri\" size=\"3\">For other tips\/ tricks with VS Web Application Project build performance take a look at this <\/font><a href=\"http:\/\/weblogs.asp.net\/scottgu\/archive\/2006\/09\/22\/Tip_2F00_Trick_3A00_-Optimizing-ASP.NET-2.0-Web-Project-Build-Performance-with-VS-2005.aspx\"><font face=\"Calibri\" color=\"#800080\" size=\"3\">full blog entry<\/font><\/a><font face=\"Calibri\" size=\"3\"> by ScottGu.<\/font><\/p>\n<p class=\"MsoNormal\"><font face=\"Calibri\" size=\"3\">Performance issues with VWD? Email them to vwdperf-at-microsoft.com. <\/font><\/p>\n<p class=\"MsoNormal\"><font face=\"Calibri\" size=\"3\"><strong>Ranjini<\/strong> | Web Development Tools team<\/font><\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We have had complaints from some customers saying that their Web&nbsp;Project build performance with VS is very slow and it turns out that for some of the complaints the actual issue was anti-virus programs running on their machines. So, how do anti-virus programs affect VS build? Please take a look at the following snippet from [&hellip;]<\/p>\n","protected":false},"author":404,"featured_media":58792,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[197],"tags":[7306,7295,108,7307,7272,147,7302,7292,7264,7268],"class_list":["post-4344","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aspnet","tag-build","tag-perf","tag-performance","tag-rebuild","tag-tips-and-tricks","tag-visual-studio","tag-visual-studio-2008","tag-vs2008","tag-wap","tag-web"],"acf":[],"blog_post_summary":"<p>We have had complaints from some customers saying that their Web&nbsp;Project build performance with VS is very slow and it turns out that for some of the complaints the actual issue was anti-virus programs running on their machines. So, how do anti-virus programs affect VS build? Please take a look at the following snippet from [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/4344","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/users\/404"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/comments?post=4344"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/4344\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media\/58792"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media?parent=4344"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/categories?post=4344"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/tags?post=4344"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}