Slower compilation with VC Net 2003 (7.1) when compared to VC Net 7.0 
Author Message
 Slower compilation with VC Net 2003 (7.1) when compared to VC Net 7.0

I recently installed VC Net 2003 and when compiling a large solution
(previously compiled with VC Net 7.0), the compiler is noticably slower.

(1) Is this anticipated or have I set something up wrong?
(2) I also notice that the real-time consumption in task manager seems less
than it previously was (compiling on a dual xeon processors).  Have there
been any changes in the compiler that would account for this?

Thanks in advance,
Billw



Sat, 03 Dec 2005 08:04:05 GMT  
 Slower compilation with VC Net 2003 (7.1) when compared to VC Net 7.0
Yes.  The throughput went down silightly in 7.1 due to all the features
we've added.  But is the slowdown particularly bad in your situation?  If
so, would you mind generating some numbers for us so we can look into it?  
Thank you.
--------------------
Quote:

> Subject: Slower compilation with VC Net 2003 (7.1) when compared to VC
Net 7.0
> Date: Mon, 16 Jun 2003 17:04:05 -0700
..

> I recently installed VC Net 2003 and when compiling a large solution
> (previously compiled with VC Net 7.0), the compiler is noticably slower.

> (1) Is this anticipated or have I set something up wrong?
> (2) I also notice that the real-time consumption in task manager seems
less
> than it previously was (compiling on a dual xeon processors).  Have there
> been any changes in the compiler that would account for this?

> Thanks in advance,
> Billw

..

--
Rui Sun
Visual C++ Team
This posting is provided "AS IS" with no warranties, and confers no
rights.



Tue, 06 Dec 2005 01:26:59 GMT  
 Slower compilation with VC Net 2003 (7.1) when compared to VC Net 7.0
Sorry to take a while in answering your questions.
The following lists the overall times for building/linking the application.
These are complete rebuilds, not builds.
All builds were made on the same machine (2.2Mhz P4, 1GB Ram, Lots of disk
space running WindowsXP, SP1).
All compiled code is MFC-based, with generous use of STL and other
templates.

-The first line of each entry indicates the VS version.
-Second line of each entry is the recorded completion time along with notes
regarding what was done before the run started.
-Third line is the recorded start time of the compilation.
-Fourth line is the recorded total time (Hrs:Min:Sec)

.net 2002
10:28:57 (reboot, clean, run Diskeeper)
09:22:00
01:06:57

.net 2003
12:13:34 (reboot, clean, run Diskeeper)
10:59:00
01:14:34

02:37:33 (clean)
01:16:00
01:21:33

04:16:50 (clean)
02:56:00
01:20:50

05:15:39 (clean, run Diskeeper)
04:24:00
01:21:39

07:13:58 (reboot, clean)
05:54:00
01:27:58

The results seem to vary somewhat and we have subjectively observed what we
believe are longer build times than those recorded here.
There must be some dependency (maybe, network related w/VSS) that we haven't
pinned down yet which causes the varying build times..
Billw



Quote:
> Yes.  The throughput went down silightly in 7.1 due to all the features
> we've added.  But is the slowdown particularly bad in your situation?  If
> so, would you mind generating some numbers for us so we can look into it?
> Thank you.
> --------------------

> > Subject: Slower compilation with VC Net 2003 (7.1) when compared to VC
> Net 7.0
> > Date: Mon, 16 Jun 2003 17:04:05 -0700
> ..

> > I recently installed VC Net 2003 and when compiling a large solution
> > (previously compiled with VC Net 7.0), the compiler is noticably slower.

> > (1) Is this anticipated or have I set something up wrong?
> > (2) I also notice that the real-time consumption in task manager seems
> less
> > than it previously was (compiling on a dual xeon processors).  Have
there
> > been any changes in the compiler that would account for this?

> > Thanks in advance,
> > Billw

> ..

> --
> Rui Sun
> Visual C++ Team
> This posting is provided "AS IS" with no warranties, and confers no
> rights.



Sat, 10 Dec 2005 01:59:02 GMT  
 Slower compilation with VC Net 2003 (7.1) when compared to VC Net 7.0

--------------------

Quote:
> Subject: Re: Slower compilation with VC Net 2003 (7.1) when compared to
VC Net 7.0
> Sorry to take a while in answering your questions.
> The following lists the overall times for building/linking the
application.
> These are complete rebuilds, not builds.
> All builds were made on the same machine (2.2Mhz P4, 1GB Ram, Lots of disk
> space running WindowsXP, SP1).
> All compiled code is MFC-based, with generous use of STL and other
> templates.

> -The first line of each entry indicates the VS version.
> -Second line of each entry is the recorded completion time along with
notes
> regarding what was done before the run started.
> -Third line is the recorded start time of the compilation.
> -Fourth line is the recorded total time (Hrs:Min:Sec)

> .net 2002
> 10:28:57 (reboot, clean, run Diskeeper)
> 09:22:00
> 01:06:57

> .net 2003
> 12:13:34 (reboot, clean, run Diskeeper)
> 10:59:00
> 01:14:34

> 02:37:33 (clean)
> 01:16:00
> 01:21:33

> 04:16:50 (clean)
> 02:56:00
> 01:20:50

> 05:15:39 (clean, run Diskeeper)
> 04:24:00
> 01:21:39

> 07:13:58 (reboot, clean)
> 05:54:00
> 01:27:58

> The results seem to vary somewhat and we have subjectively observed what
we
> believe are longer build times than those recorded here.
> There must be some dependency (maybe, network related w/VSS) that we
haven't
> pinned down yet which causes the varying build times..
> Billw

Bill, the compiler front-end has slowed down a bit because of added
functionality - ISO conformance doesn't come without a price, albeit a very
modest one. For example, compiling a run-of-the-mill STL program using
<iterator>, <algorithm>, <iostream>, <vector>, etc. I get these times:

VS.Net 2002: 0.313s
VS.Net 2003: 0.359s.

This represents a 15% increase in compile time (front-end/parser only).
This seems to be in line with what you're seeing - you're seeing from
12-30% slowdowns, but remember my times did not measure the back-end and
linker times.

If you're using PCHs, check their sizes. Large PCHs tend to get fragmented
and that will slow down compilations.

--
Tanveer Gani, Visual C++ Team
This posting is provided AS IS with no warranties, and confers no rights.



Wed, 14 Dec 2005 02:29:07 GMT  
 Slower compilation with VC Net 2003 (7.1) when compared to VC Net 7.0
Thanks for the information.  We'll keep looking at it to see if we can
isolate anything else.
There are many pch files in the solution with the largest being about 45MB.
That is one of the reasons that we were running diskeeper to ensure that we
were starting with a non-fragmented disk.  There was generous free space on
the disk.

Thanks again,
Billw



Quote:

> --------------------



> > Subject: Re: Slower compilation with VC Net 2003 (7.1) when compared to
> VC Net 7.0
> > Sorry to take a while in answering your questions.
> > The following lists the overall times for building/linking the
> application.
> > These are complete rebuilds, not builds.
> > All builds were made on the same machine (2.2Mhz P4, 1GB Ram, Lots of
disk
> > space running WindowsXP, SP1).
> > All compiled code is MFC-based, with generous use of STL and other
> > templates.

> > -The first line of each entry indicates the VS version.
> > -Second line of each entry is the recorded completion time along with
> notes
> > regarding what was done before the run started.
> > -Third line is the recorded start time of the compilation.
> > -Fourth line is the recorded total time (Hrs:Min:Sec)

> > .net 2002
> > 10:28:57 (reboot, clean, run Diskeeper)
> > 09:22:00
> > 01:06:57

> > .net 2003
> > 12:13:34 (reboot, clean, run Diskeeper)
> > 10:59:00
> > 01:14:34

> > 02:37:33 (clean)
> > 01:16:00
> > 01:21:33

> > 04:16:50 (clean)
> > 02:56:00
> > 01:20:50

> > 05:15:39 (clean, run Diskeeper)
> > 04:24:00
> > 01:21:39

> > 07:13:58 (reboot, clean)
> > 05:54:00
> > 01:27:58

> > The results seem to vary somewhat and we have subjectively observed what
> we
> > believe are longer build times than those recorded here.
> > There must be some dependency (maybe, network related w/VSS) that we
> haven't
> > pinned down yet which causes the varying build times..
> > Billw

> Bill, the compiler front-end has slowed down a bit because of added
> functionality - ISO conformance doesn't come without a price, albeit a
very
> modest one. For example, compiling a run-of-the-mill STL program using
> <iterator>, <algorithm>, <iostream>, <vector>, etc. I get these times:

> VS.Net 2002: 0.313s
> VS.Net 2003: 0.359s.

> This represents a 15% increase in compile time (front-end/parser only).
> This seems to be in line with what you're seeing - you're seeing from
> 12-30% slowdowns, but remember my times did not measure the back-end and
> linker times.

> If you're using PCHs, check their sizes. Large PCHs tend to get fragmented
> and that will slow down compilations.

> --
> Tanveer Gani, Visual C++ Team
> This posting is provided AS IS with no warranties, and confers no rights.



Sun, 18 Dec 2005 23:34:15 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. VS.NET 2003 - Please explain the 7.1 Runtime

2. IEnumUnknown->Next method causes a crash in MFC 7.1 (VS .net 2003)

3. Frustrated with VC++.NET 2003

4. VC .NET 2003 l-value bug?

5. Problem porting ATL project from VC++ 6.0 to VC++.NET 2003

6. VC .NET 2003 features

7. Converting VC6 to .NET 2003 VC

8. Streams in Visual C++ 6.0 vise VC .NET 2003

9. Problem converting VC6 ATL component to a .NET 2003 VC ATL component

10. Embedded MySQL / VC.NET 2003 / MFC

11. Disabling runtime checking in VC .NET 2003

12. VC.NET 2003 IDE bug report

 

 
Powered by phpBB® Forum Software