Re: Extremely long build times



Rudy Velthuis [TeamB] wrote:

James Miller wrote:

Ok, I saw your other message about recursive units. I think that's
your real problem.

What exactly do you mean by that? A unit should not use itself? Why
not?

Units should not mutually use each other. I.e. A uses B and B uses A.
That only works if one of them uses the other in the implementation
section only.

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.

Unfortunately when one gets into the situation, it is really a bear to
work one's way out of it. All it takes is for one inadvertent unit to
end up in a long chain of unit uses. Unit A uses B uses C ... uses X
uses Y uses Z uses A...

--
Allen Bauer
CodeGear
Chief Scientist
http://blogs.borland.com/abauer
.