How to improve Delphi compiling speed?

I have a Delphi project group (groupproj) of 290 projects (.dproj). It takes about 90 seconds to compile 365,000 lines of code.

I am using a notebook equipped with 12GB of RAM, SSD and dual core CPU (4 logical processors) to build the project group. By monitoring the resource meters during compilation, the RAM and SSD isn't a limit for the task. The CPU only use a single logical processor for the compilation and I think this is the design of Delphi compiler.

Is there any options to improve the compiling time significantly by using better hardware or build system like IncrediBuild?

Will better hardware environment (RAID-0, XEON) help much?


As you have identified that your build process is not I/O bound, using RAID or a better processor is not really going to help. If there are no dependencies in your build in terms of order, you could write a utility in Delphi that executed command line builds in a series of threads. This should allow you to spread the load across all your CPU cores. A simple Producer Consumer Queue structure and a series of worker threads should do the job nicely.

链接地址: http://www.djcxy.com/p/85464.html

上一篇: *在C ++初始化中

下一篇: 如何提高Delphi编译速度?