[fpc-devel] Memory consumed by strings
Jonas Maebe
jonas.maebe at elis.ugent.be
Sun Nov 23 12:49:09 CET 2008
On 23 Nov 2008, at 12:35, listmember wrote:
>> Do a 'find declaration' on an identifier, that does not exist. This
>> will explore all units of the uses section.
>
> Now I see what you mean.
>
> But, isn't this a design-choice; caching all sources in memory for
> speed reasons, as opposed to on-demand opening and closing each file.
For very large projects, that should probably be done anyway at some
point. But even in that case, using a more memory-efficient string
type enables you to keep more data in memory and hence potentially
obtain better performance.
Jonas
More information about the fpc-devel
mailing list