[fpc-devel] Forwarded message about FPC statusy
Sven Barth
pascaldragon at googlemail.com
Tue Dec 25 20:24:47 CET 2012
On 25.12.2012 18:10, Mark Morgan Lloyd wrote:
> Florian Klaempfl wrote:
>> Am 25.12.2012 15:11, schrieb Paul Ishenin:
>>> 25.12.12, 21:59, Yury Sidorov ?????:
>>>
>>>> Hmm, Seems to be a false alarm :(
>>>>
>>>> I've made some tests just now with memory allocation and found that
>>>> such
>>>> pooling will not speed up the compiler too much. Only minor improvement
>>>> such as 10-20% :(
>>>
>>> 10-20% is still much better than nothing.
>>
>> Yes, but you might also pay with a higher memory footprint which might
>> even eat this speed advantage under certain circumstances.
>
> If the memory footprint was less than was needed for the linkage stage
> would this matter?
>
> Obviously this isn't comparing "like with like", since the compiler
> footprint would presumably be per-unit rather than for the entire
> program. But any realistic development system has to be prepared to
> allocate enough memory for linkage, 512Mb is realistic for building e.g.
> Lazarus so it's reasonable to argue that that space is also available
> for compilation.
>
If you compile a project from scratch (let's keep aside the RTL, FCL and
LCL) then the compiler will keep more data in memory than when the
project is recompiled and e.g. no of the dependant units were changed.
Regards,
Sven
More information about the fpc-devel
mailing list