Chau Chee Yang 0 Posted September 21 I have a project group of over 470 projects. I wrote a script to build these projects in parallel. In RAD Studio 12, the build speed is 50-55s. In RAD Studio 13, the build speed is 90-95s Share this post Link to post
Chau Chee Yang 0 Posted September 22 17 hours ago, Chau Chee Yang said: I have a project group of over 470 projects. I wrote a script to build these projects in parallel. In RAD Studio 12, the build speed is 50-55s. In RAD Studio 13, the build speed is 90-95s One of a project contain many .rc files. I realize the slower is due to the new resource compiler (resinator.exe) causing the issue. 1 Share this post Link to post
Vincent Parrett 909 Posted September 22 If you have the windows sdk installed you can change the project to use rc.exe - at least that would confirm whether resinator is to blame or not. Share this post Link to post
Chau Chee Yang 0 Posted September 23 2 hours ago, Vincent Parrett said: If you have the windows sdk installed you can change the project to use rc.exe - at least that would confirm whether resinator is to blame or not. Yes, confirmed. Using resinator to build takes 30s Using rc.exe to build takes 2s. Share this post Link to post
Vincent Parrett 909 Posted September 23 Unless your resources change often - I would avoid building them all the time. I guess you added the .rc files to the project? This has always been a bad idea imho - build the resources separately (create a batch file if needed) and then just use the .res files. 1 Share this post Link to post
Vincent Parrett 909 Posted September 23 BTW, how many resource files are you building? Share this post Link to post
Vinicius Abreu 0 Posted September 23 (edited) Are there invalid directories in the search directories? In an article written by Marco Cantú, "Some Suggestions to Help the Delphi Compiler", he shows an example of compiler slowdowns when there are invalid directories in the project. Embarcadero recently made a utility available in GetIt, Delphi Update Advisor Wizard There are also some other tips that can be found in my presentation at the Embarcadero Conference in Brazil. I would be grateful to hear what solution or tips you used to resolve this compiler slowdown 🙂 Edited September 23 by Vinicius Abreu Share this post Link to post
Chau Chee Yang 0 Posted September 23 1 hour ago, Vincent Parrett said: BTW, how many resource files are you building? I have 17 rc files in the package. This is package store all resources Share this post Link to post
Chau Chee Yang 0 Posted September 23 1 hour ago, Vincent Parrett said: Unless your resources change often - I would avoid building them all the time. I guess you added the .rc files to the project? This has always been a bad idea imho - build the resources separately (create a batch file if needed) and then just use the .res files. This practice is inconvenient for source code management and automated build Share this post Link to post
Sherlock 688 Posted September 23 How often are these resources subject to change? It would be unusual for them to change for every build, and the solution provided by @Vincent Parrett is common practice with SCM and automated builds. If however they do change often, a batch could be run as a pre build script. Share this post Link to post