Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2014-07

Need Testers: parallel compilation

6 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner

Hi,

The IDE and lazbuild now compile packages in parallel. Each package is still compiled with one call of fpc (single threaded).

You can set the maximum number of parallel processes in Tools / Options / Messages Window. By default it tries to guess the amount of cpu cores with the function GetSystemThreadCount in unit UTF8Process.

Mattias

Reply by email

Vojtěch Čihák
to Mattias Gaertner

Nice feature, thanks.
I only wonder why is it "hidden" in Messages Window? IMO it has nothing to do with it. I should rename the node to 'Messages and Compilation' ?or create new node 'Compilation' if there are planned more options like this in future.?
?
Vojt?ch?
______________________________________________________________

Show quoted text 5 lines
Od: Mattias Gaertner Komu: Datum: 28.07.2014 21:17 P?edm?t: [Lazarus] Need Testers: parallel compilation

Hi,

The IDE and lazbuild now compile packages in parallel. Each package is still compiled with one call of fpc (single threaded).

You can set the maximum number of parallel processes in Tools / Options / Messages Window. By default it tries to guess the amount of cpu cores with the function GetSystemThreadCount in unit UTF8Process.

Mattias

Reply by email

patspiper
to Mattias Gaertner: The IDE and lazbuild now compile packages in parallel. Each package is still compiled…

A very welcome feature. It improved the IDE build cycle time from 90s to 60s in my setup (including linking)!

Regarding the cpu cores, it says default(4). I suppose the 4 is system dependent.

I agree with Vojt?ch regarding the placement of the option. The 'Configure build lazarus' is a more suitable place.

Stephano

Mattias Gaertner wrote 17 lines
Hi, The IDE and lazbuild now compile packages in parallel. Each package is still compiled with one call of fpc (single threaded). You can set the maximum number of parallel processes in Tools / Options / Messages Window. By default it tries to guess the amount of cpu cores with the function GetSystemThreadCount in unit UTF8Process. Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Mattias Gaertner
to Vojtěch Čihák: Nice feature, thanks. I only wonder why is it "hidden" in Messages Window? IMO it has…
Nice feature, thanks. I only wonder why is it "hidden" in Messages Window? IMO it has nothing to do with it. I should rename the node to 'Messages and Compilation' ?or create new node 'Compilation' if there are planned more options like this in future.?

There are no more such options planned.
The option is only for processes shown in the Messages window. Other processes started by the IDE are not limited.
Parallel execution also means adding new lines in the Messages window at multiple places instead of only appending at the end. This might disturb or confuse some users, so they might start looking at the Messages options.

Mattias

Reply by email

Juha Manninen
to patspiper: A very welcome feature. It improved the IDE build cycle time from 90s to 60s in my setup…

Very nice indeed. I am testing with my employer's windows laptop and I can see all 4 cores being used.

patspiper wrote
I agree with Vojt?ch regarding the placement of the option. The 'Configure build lazarus' is a more suitable place.

No, 'Configure build lazarus' is only about rebuilding Lazarus itself. The new threaded compilation is for all projects.

Juha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20140729/bb0f716e/attachment.html>

Reply by email