Hello Chuck,

we had a similar problem with a very large project. At one point it
would compile so slowly that I could write down the names of the units
being compiled. It turned out that it was to do with circular
references.

We had one master unit "Master" which referenced more than 100 other
units, eg: "Slave1", "Slave2", etc..... up until "SlaveN". Now each
slave unit also referenced "Master". The compiler does not appear to
treat this very efficiently. Once we broke the circular reference for
the 100 files the compile time dropped to a couple of seconds.

We achieved this by creating a new unit and moving the Slave
references from Master to this new unit. We were able to do this
because we were just making sure that the Slave units were linked in to
the project and not actually required by Master. You might not be so
lucky and it might require a bit more thought.

Hope that this helps.


-- 
Best regards,
 Stephen                            mailto:[EMAIL PROTECTED]

_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to