Re: Extremely long build times
- From: Jolyon Smith <jsmith@xxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 1 Aug 2007 09:05:10 +1200
In article <46af95a8$1@xxxxxxxxxxxxxxxxxxxxxx>, Allen Bauer (CodeGear)
says...
There are also internal limitations in the compiler which can cause
problems if one were to have a deeply recursive set of units. As a
codebase grows, one can lose sight of the overall "reference web" of
units and suddenly trip into this limitation. It is often manifests as
a significant performance degredation and seemingly random error
messages about recursive uses.
I would have thought/hoped that any recursive unit references would
consistently yield an appropriate error! (and ime they do)
;)
I am working on a (huge) project (Delphi 5 - so it's nothing new!) where
build times hit the floor when the number of otherwise recursion safe
references (i.e. in implementation sections) back to a particularly
large "hub" unit from units used by that "hub" reaches a critical mass.
Without doing a particularly forensic investigation I had always
presumed that the problem was that the compiler was finding itself
repeatedly referred back to the interface section of the "hub" unit,
each time having to deal with the unit references it finds until it has
finally waded through the interface uses list.
unit Hub;
uses
UnitA,
UnitB,
UnitC;
If Units A, B and C all reference Hub in their implementation sections,
how does the compiler handle this?
I may be a million miles wide of the mark, but I have always imagined
something like...
Hub
-> UnitA
-> Hub
-> (in UnitA - skip it)
-> UnitB
-> Hub
-> (in UnitA - skip it)
-> (in UnitB - skip it)
-> UnitC
--
JS
TWorld.Create.Free;
.
- References:
- Extremely long build times
- From: Stavros Papadopoulos
- Re: Extremely long build times
- From: Eduardo A. Salgado
- Re: Extremely long build times
- From: Nikos Bakolas
- Re: Extremely long build times
- From: Lucian Radulescu
- Re: Extremely long build times
- From: Stavros Papadopoulos
- Re: Extremely long build times
- From: Lucian Radulescu
- Re: Extremely long build times
- From: James Miller
- Re: Extremely long build times
- From: Rudy Velthuis [TeamB]
- Re: Extremely long build times
- From: Allen Bauer (CodeGear)
- Extremely long build times
- Prev by Date: Re: Extremely long build times
- Previous by thread: Re: Extremely long build times
- Next by thread: Re: Extremely long build times
- Index(es):
Relevant Pages
|