delphioptimization

Delphi: How to organize source code to increase compiler performance?


I'm working on a large delphi 6 project with quite a lot of dependancies. It takes several minutes to compile the whole project. The recompilation after a few changes is sometimes much more longer so that it is quicker to terminate Delphi, erase all dcu files and recompile everything.

Does anyone know a way to identify, what makes the compiler slower and slower? Any tips how to organize the code to improve compiler performance?

I have already tried following things:

EDIT, Summary of the answers until now:

The answer that worked best in my case:

The next thing I would like to try:

Things that didn't change anything in my case:

Things that didn't apply to my case:

Things that I didn't try:


Solution

  • Some things that could slow down the compiler

    Try to get rid of unused units in your uses clause and see if it makes a difference.