Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delphi extra slow compilation time

Well, there is a strange problem occured in my working project. It is written on Delphi. When I try to compile it, it takes 8 hours to compile about 770 000 lines (and it is not the end), while my colleague needs only 15-20 seconds. I've tried everything suggested in Why does Delphi's compilation speed degrade the longer it's open, and what can I do about it?

  1. Shorten the path to project
  2. Defragment disc with MyDefrag
  3. Use Clear Unit Cache (do not sure, if it worked at all)
    I also turned off the optimization and I use debug mode. My PC is pretty fast (i5-2310 3.1 GHz, 16 Gb RAM, usual SATA HDDs), the bottle neck could be the HDD, but my collegue has usual one too. So, it is very mysterious, what is the reason of so slow compilation.

Edit: I apologize for lack of information. Here is additional info:

  1. I use debug mode, release one works same.
  2. We use Delphi XE version.
  3. I've copied my collegue's folder with project initially.
  4. I do not use network drive, and I tried to move project to another HDD.
  5. Additional info about system: I use Windows 7 Enterprise N 64 bit, while my collegue uses Windows 7 32 bit, Also, Delphi XE is 32-bit (dunno, if it can be 64-bit). May be it is the reason in some way?

Edit 2: I found solution! The problem was that I installed Delphi on my Windows 64 bit system. Installing it on virtual Windows 7 x86 made it work: compiling in seconds. Dunno, why is there so big gap in perfomance.

like image 909
Serge Mosin Avatar asked Aug 05 '12 03:08

Serge Mosin


1 Answers

Are you sure this is not some hardware problem, e.g. your hard disk having a bad sector? Try to put the source code on a different disk and see if the problem goes away. Or maybe the search path points to a network drive that is very slow or not even available?

like image 197
dummzeuch Avatar answered Sep 30 '22 21:09

dummzeuch