Jump to content
Chau Chee Yang

RAD Studio 13 project build speed is slower

Recommended Posts

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
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.

  • Confused 1

Share this post


Link to post

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
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

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.  

  • Like 1

Share this post


Link to post

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 by Vinicius Abreu

Share this post


Link to post
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
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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×