[fpc-pascal] how to speed up lazarus compilation and debugging

md at rpzdesign.com md at rpzdesign.com
Mon Sep 30 18:33:49 CEST 2013


Here is a suggestion that might help your compile times.

If you want superfast increases in compiling under 
linux/freepascal/lazarus,
switch your development computer to a super fast CPU and especially an 
SSD solid state disk drive.

Make sure you have no spinning disks/media in your computer.

I cannot tell you how much my compile times improved when I moved to a 
development computer
that had a solid state drive only.

Linux Fedora 14 x64 fully boots from power on in 30 seconds.  Fedora 19 
x64 fully boots to KDE in 30 seconds from power on.

My Apple Ipad Mini IOS 6 takes 30 seconds to power on from Boot. Android 
Nexus 7 tablet takes even longer.

Freepascal/Lazarus compile times are insanely short, for even huge projects.

You can rebuild the entire Lazarus IDE in about a minute, even with 
CLEAN ALL setting (not automatic).  Taking
out unwanted packaged cuts down on this time.  And my CPU is not the 
fastest offered by intel.  But the SSD
makes all the difference.

Of course, I run Windows on the same computers on SSD
drive and those Delphi 7 compile times are near instant.

Let your hardware bail you out from compile times.

Cheers,

md

On 9/30/2013 11:55 AM, Mattias Gaertner wrote:
> On Mon, 30 Sep 2013 17:52:39 +0200 (CEST)
> Michael Van Canneyt <michael at freepascal.org> wrote:
>
>>
>> On Mon, 30 Sep 2013, Dennis Poon wrote:
>>
>>>
>>>> On Mon, 30 Sep 2013, Dennis Poon wrote:
>>>>
>>>>> I came from the old delphi 5 IDE and I found the lazarus 1.0.8 /FPC 2.6.2
>>>>> 's compilation and debugging a lot slower than Delphi 5.
>>>>> Are there any settings that I can make to speed up Lazarus?
>>>> Switch to Linux.
>>>>
>>>>
>>> It is faster on Linux but still way slower than Delphi 5 on windows.
>> Yes. This is known and considered not an issue.
> Well, it is an issue, but all proposed solutions had
> drawbacks.
>
> Mattias
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>




More information about the fpc-pascal mailing list