[Lazarus] Applying optimization to the project units

michael.vancanneyt at wisa.be michael.vancanneyt at wisa.be
Thu Nov 25 09:05:24 CET 2010

On Thu, 25 Nov 2010, Max Vlasov wrote:

> On Thu, Nov 25, 2010 at 12:26 AM, Michael Van Canneyt <
> michael at freepascal.org> wrote:
>> On Thu, 25 Nov 2010, Max Vlasov wrote:
>>  Hi,
>>> sometimes it takes time for a Delphi developer to understand the logic of
>>> fpc/lazarus packages and it's indeed content and full. Recently tried to
>>> measure different performance related numbers for a project and finally
>>> got that I should change the level of optimization for packages, not for the
>>> project if performance-related unit is in a package (CMIIW). But just
>>> wondering,.. these options actually consumes time so more often developers
>>> leave
>>> optimization to fastest and when the time comes, rebuilds the project with
>>> full optimization on. It looks like there's no single option allowing do
>>> this
>>> for a given project in Lazarus, right? But even if there's an option to
>>> rebuild all related packages, I still can't with one click change this
>>> radiobox
>>> for every related package. Probably this won't be a problem if I finally
>>> understand the logic and get used to it, just trying to find whether I miss
>>> something
>> Well, the same is true in Delphi, if you work with run-time packages.
>> (not sure how it works when you don't use packages).
> Michael, as long as I remember and noticed, in Delphi without run-time
> packages if one uses "Build" every reachable pas source file is rebuilded in
> a brand-new dcu file (regardless of the dates and dcu internal info).

It can be. 
I never ever put .pas files in the unit search path. 
It would take even Delphi lightyears to compile all :/


More information about the Lazarus mailing list