473,747 Members | 2,686 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# project builds SLOWER in Visual Studio on faster, new workstations

We ordered new systems with fast hardware and great specs, but Visual Studio
takes longer to build a project than on the old workstation. Msbuild is
faster, csc.exe is faster, file copy is faster. But opening copying the
project files straight over from one workstation to the new workstation,
opening the projects locally on the new workstation, and running Build from
within the IDE, it's slower--much slower, like 30 seconds rather than 10
seconds. The Output window does not indicate differences. We diff'd the
Output log from the two workstations and only see shorter msbuild times on
the new workstation.

When building on the new workstation, Visual Studio temporarily freezes up,
about three or four times (-ish) during the process (I haven't counted). The
sum amount of time that Visual Studio freezes is roughly equivalent to the
extraneous amount of time it takes for everything to complete. The Output
window does *NOT* show what it's working on when it starts freezing because
it's in a completely different spot each time. But based on very minor
differences in the Output log it *seems* to be slightly different somewhere
around where it's calculating which dependencies to import, or resolving
paths. But I'm not ready to think that's probably related.

Both the old and new workstations have WD Raptor drives, 2GB RAM (new
workstation @800MHz), both running on AMD (old workstations running
single-core Athlons, new workstation running dual-core Athlon 6000+),
Windows Server 2003 (new workstation with SP2, neither workstations running
R2, and Programs [vs Background Services] are configured to have priority),
and Visual Studio 2005 with Service Pack 1.

Any ideas?

- Jon

Apr 17 '07 #1
16 2207
Jon Davis <jo*@REMOVE.ME. PLEASE.jondavis .netwrote:

<snip>
Both the old and new workstations have WD Raptor drives, 2GB RAM (new
workstation @800MHz), both running on AMD (old workstations running
single-core Athlons, new workstation running dual-core Athlon 6000+),
Windows Server 2003 (new workstation with SP2, neither workstations running
R2, and Programs [vs Background Services] are configured to have priority),
and Visual Studio 2005 with Service Pack 1.

Any ideas?
Are they running the same virus scanning software?

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Apr 17 '07 #2
I should add, we have had several reboots, we've tried swapping out RAM, and
in fact we had the same problem on other new workstations based on Intel
(all multiple core).

I can't help but think that it's related to either

a) default configuration in Windows that something somehow is different in
our old workstation environments, despite having installed SP2 on the new
workstation and SP1 for Visual Studio and even importing the Visual Studio
settings from the old workstation onto the new workstation using the
Tools->Options team settings file import tool,

or b) multiple cores. But I haven't heard of anyone having this problem with
multiple cores??

I'm hoping someone else has seen this.

Jon
Apr 17 '07 #3
On Apr 17, 4:18 pm, "Jon Davis" <j...@REMOVE.ME .PLEASE.jondavi s.net>
wrote:
I should add, we have had several reboots, we've tried swapping out RAM, and
in fact we had the same problem on other new workstations based on Intel
(all multiple core).

I can't help but think that it's related to either

a) default configuration in Windows that something somehow is different in
our old workstation environments, despite having installed SP2 on the new
workstation and SP1 for Visual Studio and even importing the Visual Studio
settings from the old workstation onto the new workstation using the
Tools->Options team settings file import tool,

or b) multiple cores. But I haven't heard of anyone having this problem with
multiple cores??

I'm hoping someone else has seen this.

Jon
Well if you have a dual core and the processor speed is lower than on
your older machines you will notice a slow down. Since compiling can
only happen on one core it will be slower. Otherwise I don't really
see why it would be slower.

Apr 17 '07 #4

"Patrick" <pm*******@gmai l.comwrote in message
news:11******** **************@ o5g2000hsb.goog legroups.com...
Well if you have a dual core and the processor speed is lower than on
your older machines you will notice a slow down. Since compiling can
only happen on one core it will be slower. Otherwise I don't really
see why it would be slower.
Thanks, but it's not the compiler--as I mentioned in the first paragraph of
the OP, msbuild is faster, csc.exe is faster, and file copy is faster--it
seems to be the IDE. The new cpu is also 3GHz per core (old CPU was
2.21GHz).

Jon
Apr 17 '07 #5
Anyone have any more ideas? The 10 seconds pushed to 30 seconds was just for
one project in the solution that has two or three dependencies; the solution
itself takes a two or three minutes and should only take about thirty
seconds at most. This is a killer on productivity especially when debugging
base/core libraries (which we do all the time). Are we stuck with our old
workstations??

Jon
"Jon Davis" <jo*@REMOVE.ME. PLEASE.jondavis .netwrote in message
news:OE******** ******@TK2MSFTN GP02.phx.gbl...
>
"Patrick" <pm*******@gmai l.comwrote in message
news:11******** **************@ o5g2000hsb.goog legroups.com...
>Well if you have a dual core and the processor speed is lower than on
your older machines you will notice a slow down. Since compiling can
only happen on one core it will be slower. Otherwise I don't really
see why it would be slower.

Thanks, but it's not the compiler--as I mentioned in the first paragraph
of the OP, msbuild is faster, csc.exe is faster, and file copy is
faster--it seems to be the IDE. The new cpu is also 3GHz per core (old CPU
was 2.21GHz).

Jon


Apr 18 '07 #6
I think you mentioned the new workstations are running Windows 2003 Server
with SP2? There were a few significant performance issues in some cases with
SP2, but I don't remember the details. You could search for the details, or
try a workstation without SP2. Or add SP2 to one of your older/faster
workstations if it's not already on.
Paul Shapiro

"Jon Davis" <jo*@REMOVE.ME. PLEASE.jondavis .netwrote in message
news:ej******** ******@TK2MSFTN GP04.phx.gbl...
Anyone have any more ideas? The 10 seconds pushed to 30 seconds was just
for one project in the solution that has two or three dependencies; the
solution itself takes a two or three minutes and should only take about
thirty seconds at most. This is a killer on productivity especially when
debugging base/core libraries (which we do all the time). Are we stuck
with our old workstations??

Jon
"Jon Davis" <jo*@REMOVE.ME. PLEASE.jondavis .netwrote in message
news:OE******** ******@TK2MSFTN GP02.phx.gbl...
>>
"Patrick" <pm*******@gmai l.comwrote in message
news:11******* *************** @o5g2000hsb.goo glegroups.com.. .
>>Well if you have a dual core and the processor speed is lower than on
your older machines you will notice a slow down. Since compiling can
only happen on one core it will be slower. Otherwise I don't really
see why it would be slower.

Thanks, but it's not the compiler--as I mentioned in the first paragraph
of the OP, msbuild is faster, csc.exe is faster, and file copy is
faster--it seems to be the IDE. The new cpu is also 3GHz per core (old
CPU was 2.21GHz).

Apr 18 '07 #7

"Paul Shapiro" <pa**@hideme.br oadwayData.comw rote in message
news:%2******** ********@TK2MSF TNGP05.phx.gbl. ..
>I think you mentioned the new workstations are running Windows 2003 Server
with SP2? There were a few significant performance issues in some cases
with SP2, but I don't remember the details. You could search for the
details, or try a workstation without SP2. Or add SP2 to one of your
older/faster workstations if it's not already on.
Paul Shapiro
Considered that, but *both* the old and new workstations (there is only one
new workstation) have Win2k3 SP2 and the old workstation is *without* the
few-seconds IDE freeze issue. So unless there's specifically a conflict of
SP2 with something else on the default setup on the new workstation that the
old workstation doesn't have (and the old workstation has everything on it
that the new workstation has plus a lot more), that cannot be related.
Regarding this issue on the whole, we are seriously considering the notion
that Visual Studio is suffering from some kind of racing condition, where
it's starting to wait for something to happen (i.e. file copy event,
perhaps), but it already happened, so it waits for a few seconds until it
gives up.

We are also considering the notion that Visual Studio is not "compatible "
(in this regard) to support dual-core Athlons, since a nearly identical
symptom was experienced, so I am told by my boss, on some of our dual-core
Intels that was resolved from Visual Studio 2005 Service Pack 1. In other
words, Service Pack 1 fixed the performance issue with dual-core Intels but
not the dual-core AMDs.

Jon


Apr 18 '07 #8
On Wed, 18 Apr 2007 13:31:01 -0700, "Jon Davis"
<jo*@REMOVE.ME. PLEASE.jondavis .netwrote:
>
"Paul Shapiro" <pa**@hideme.br oadwayData.comw rote in message
news:%2******* *********@TK2MS FTNGP05.phx.gbl ...
>>I think you mentioned the new workstations are running Windows 2003 Server
with SP2? There were a few significant performance issues in some cases
with SP2, but I don't remember the details. You could search for the

Jon
Hi Jon, why not try wiping one of the workstations and install another
OS such as XP or Vista? I doubt that many people are running Visual
Studio on a server OS, it may at least help narrow it down to an
OS/software issue rather than a hardware one.

--
Philip Daniels
Apr 19 '07 #9
On Apr 18, 9:31 pm, "Jon Davis" <j...@REMOVE.ME .PLEASE.jondavi s.net>
wrote:
"Paul Shapiro" <p...@hideme.br oadwayData.comw rote in message
[...]
We are also considering the notion that Visual Studio is not "compatible "
(in this regard) to support dual-core Athlons, since a nearly identical
symptom was experienced, so I am told by my boss, on some of our dual-core
Intels that was resolved from Visual Studio 2005 Service Pack 1. In other
words, Service Pack 1 fixed the performance issue with dual-core Intels but
not the dual-core AMDs.
If you have suspicions about dual-core compatibility, you could try
telling Windows to use only one CPU core and see if you can observe
any difference. You can do this via boot.ini, see here:

http://www.microsoft.com/technet/sys...n/bootini.mspx

The switch you need is /ONECPU (or /NUMPROC=1)
Regards,

Matt

Apr 19 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1751
by: Chris Kilmer | last post by:
I would like to be able to customize the path structure that VS.NET 2003 creates for projects. 1. I'd like to be able to create a project without VS.NET creating a folder for that project. I've already created a folder where I want the project to go, however, VS.NET won't use the existing folder, it wants to create it's own. 2. I also want to be able to specify my own paths for source, builds, etc.
5
11053
by: David Webb | last post by:
The problem started when the Working Folder for a project was somehow set to the folder of another project. I set the correct working folder in VSS and deleted the .vbproj files that had been created in the wrong folder on the hard drive. Before I discovered these files, .NET kept trying to create a new project with _1 following the project name. Deleting those files corrected that problem. I deleted the Virtual Directory, rebooted, and...
1
1601
by: Vladimír Kolesnik | last post by:
Hi, there we need help concerning setting project under source control. We want to have a project on the server, and developers in the local network working on this project. We decided to use strategy officialy called "Isolated Development". We studied help in Visual Studio .NET called "Web Projects and Source Control Integration in Visual Studio ..NET". First we created solution on machine: A (server), then added a web project to this...
2
1193
by: Nathan Sokalski | last post by:
Because I wanted the builds for my ASP.NET sites to be a single *.dll in a /bin/ directory (like VSNET 2003), I decided to try the Web Application Project download. However, I am still pulling my hair out because it doesn't want to recognize any of the Controls (not even the ones that are part of ASP.NET). All of the Controls show the following error: Name 'mycontrolid' is not declared. And my UserControls show the following error (all...
6
9142
by: Andrew Rowley | last post by:
I am having trouble getting debug and release builds to work properly with project references using C++ .NET and Visual Studio 2003. I created a test solution, with a basic Windows form C++ project. I then add a class library, and add a reference to this project in the first project. When I do a release build, I see the following in the output from the DLL compile: /OUT:"C:\Documents and Settings\Andrew\My Documents\Visual Studio
7
1221
by: uupi_duu | last post by:
Hello, Has VS.Net 2005 SP1 changed C# WebApp's project files? Can't open it anymore without installing SP1. Anyone know what is behind this? Cheers,
12
7594
by: BDowling | last post by:
Hi all, I have an existing Visual C++ project that builds a DLL (not COM or ATL or anything). I wish to use this DLL in a Visual Studio 2005 C# project without having to define each function and structure again in the C# project (using pinvoke I believe). I've done some reading around and it seems that what I'm after is possible. I've added the old C++ project to my new C# solution and set the compiler to use /clr. I can then add the...
10
1664
by: =?Utf-8?B?TUNN?= | last post by:
When creating a new VB Web Application Project with VS2008, there are several settings (compiler settings, option strict, etc) that appear both in the web.config file and "My Project". I'm wondering what takes precedent, what the benefit of using one vs. the other is, and what happens if they conflict?
9
6501
by: AWW | last post by:
Running XP - Visual Studio 2005 - VB Want to have duplicate projects - one safe and stable - other for experimenting Can't fine easy way to make duplicate project. Stupid question? or stupid ME? Thanks.
0
8978
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9522
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9353
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9305
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9222
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4860
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3296
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2771
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2203
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.