Note that there are some explanatory texts on larger screens.

plurals
  1. PODelphi XE compiler speed slow
    text
    copied!<p>During our quest to optimize Delphi compile time in general we found some strange difference of compile time between different PCs.</p> <p>The problem is that on some PCs “raw” <strong>compile time is 2 times faster</strong> than the slow ones and we simply can’t explain why this should be the case.</p> <p><strong>Test Setup</strong></p> <ul> <li><p>We tested compile time on 3 different PCs with almost identical configuration. The is PC’s delivered and configured from our IT department with Windows 7 Enterprise 64 bit, service pack 1.</p></li> <li><p>Delphi is installed by ourselves and is Delphi XE with update 1.</p></li> <li><p>Hw spec is almost identical with Core i7-3770 3,4 GHz 8G Ram and 256 Gb SSD disk.</p></li> <li><p>We benchmarked all 3 PCs with almost identical performance on general system, disk and ram.</p></li> <li><p>We performed the test with use of command line compilation with dcc32.exe. We tested on different project, all extracted from common source repository.</p></li> </ul> <p><strong>Tests</strong></p> <p>After a lot of tests where we looked at different Delphi environment configuration as well as Windows 7 setup. All the test showed similar performance on 2 of the PCs and 1 PC running twice as fast.</p> <p>Finally we made a simple test file with 1 simple class and a lot of lines which increment a variable. The test file is 32 Mb and is compiled on the <strong>fast PC in 1.3s. On the 2 other PCs it takes >3s</strong></p> <p>Command to do the compile:</p> <pre><code>"c:\program files (x86)\embarcadero\rad studio\8.0\bin\dcc32.exe" -$O- -$W+ -$J+ -$YD --no-config -B -Q -AWinTypes=Windows;WinProcs=Windows;DbiTypes=BDE;DbiProcs=BDE;DbiErrs=BDE -DDEBUG; -U;"c:\program files (x86)\embarcadero\rad studio\8.0\lib\Win32\release" -V -VN -K00400000 -GD -NBDcp -NHHpp -NODcp ..\Test.pas </code></pre> <p>Any idea why compile time is that different on almost identical PCs?</p> <p>Which tests could we do to troubleshoot the issue?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload