Re: Extremely long build times



What does your Compile dialog show? Are you getting any hints/warning?
I don't know about Delphi 2007, but in the previous versions of Delphi the
compilation could get *exteremely* slow if you had many warnings/hints
(thousands). It sure looks like Delphi was rebutiling the list of
warnings/errors by setting the TStringList.Text rather than calling
TStringList.Add.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Stavros Papadopoulos" <"nestor at anadelta dot com"> wrote in message
news:46af6232$1@xxxxxxxxxxxxxxxxxxxxxxxxx
Building our 500,000+ line application in Delphi 2007 takes about 37
minutes (although sometimes, for unknown reasons, it will take more
than one hour and a half) on a fairly fast machine (1GB Intel Core
Duo). At the early stages of development (up to 100,000 lines)
compilation was extremely quick, taking less than a minute for a full
build. The slowdown now appears to be exponential in nature with
respect to source size.

The amount of the machine's memory is irrelevant, since bds.exe does
not consume more than 200MB at any point during the building process.
There are no invalid entries in our library and search paths, no
network drives and no read-only files.

After posting at borland.public.delphi.non-technical and discussing
the issue a few months ago, it was suggested that the problem was that
the compiler keeps rebuilding incomplete units from scratch each time
they are being referenced. We split several of our largest such units,
but it made absolutely no difference.

We have made a post on QC about our problem (report #49845), in which
we have included an .XLS file that graphically depicts the compiler's
progress through our source code.

At this point, we have tried a lot of promising and even some not-so-
promising things (such as disabling hint generation). Does anyone have
any new insights into the probable cause of this slowdown?


.



Relevant Pages

  • Re: 64-bit Windows for AMD 64 is here...
    ... > than its Win32 equivalent. ... and have no clear winner anymore. ... compilation. ... A few want Delphi. ...
    (borland.public.delphi.non-technical)
  • Re: ASP.NET Hello World Example Problem.
    ... Well suprise suprise it finally works:D ... Wow I have a lot to learn about .NET delphi 8 etc. ... It turned out I only had to upload WebForm1.aspx and the WebApplication2.dll ... An error occurred during the compilation of a resource ...
    (borland.public.delphi.language.objectpascal)
  • Re: IntToStr64 - What a difference __lldiv makes
    ... >> This raises the question - Which version of Delphi should be our ... >> primary target? ... > the RTL function of the newest Delphi version, ... > prevented by using conditional compilation. ...
    (borland.public.delphi.language.basm)
  • Re: Delphi 2005, .NET, Visual Studio 2003 question...
    ... we will be doing C# and .NET development. ... Delphi 2005 will not only do C# compilation, it will also allow you to do ... almost everything that Visual Studio will do. ...
    (borland.public.delphi.non-technical)
  • Re: [64-bit] optimism
    ... letter to the Delphi community laying out Delphi plans from about 2 years ... Borland saw .NET as the future of Delphi and would ... native 64-bit compilation because IFAIAC it was obviously wasn't in its ... Check out the Delphi Community Blog Aggregator ...
    (borland.public.delphi.non-technical)