Delphi - slow compilation time

Well, there was a strange problem in my working draft. It is written in Delphi. When I try to compile it, it takes 8 hours to compile about 770,000 lines (and this is not the end), and my colleague only needs 15-20 seconds . I tried everything that was suggested in. Why does the Delphi compilation speed deteriorate longer than it is open, and what can I do with it?

  • Shorten the path to the project
  • Defragment a disk using MyDefrag
  • Use Clear Unit Cache (not sure if it works at all)
    I also turned off optimization, and I use debug mode. My computer is pretty fast (i5-2310 3.1 GHz, 16 GB of RAM, regular SATA drives), the neck of the bottle can be a hard drive, but my colleague also has a regular one. So, this is very mysterious, what is the reason for such a slow compilation.

Edit: Sorry for the lack of information. Here is additional information:

  • I use debug mode, release one works the same.
  • We are using the version of Delphi XE.
  • I copied my college folder with the project initially.
  • I do not use a network drive, and I tried to move the project to another hard drive.
  • Additional system information: I am using Windows 7 Enterprise N 64-bit , while my college is using 32-bit version of Windows 7, as well as Delphi XE 32-bit (dunno if it can be 64-bit). Maybe this is the reason in some way?

Edit 2: I found a solution! The problem was that I installed Delphi on my 64-bit Windows system. Installing it on a virtual Windows 7 x86 made it work: compiling in seconds. I don’t know why there is so much performance gap.

+6
source share
1 answer

Are you sure that this is not some kind of hardware problem, for example. does your hard drive have a bad sector? Try putting the source code on another drive and see if the problem persists. Or maybe the search path points to a network drive that is very slow or not even accessible?

+2
source

Source: https://habr.com/ru/post/922138/


All Articles