[fpc-devel] Memory consumed by strings

Mattias Gaertner nc-gaertnma at netcologne.de
Sun Nov 23 12:25:52 CET 2008


On Sun, 23 Nov 2008 13:05:15 +0200
listmember <listmember at letterboxes.org> wrote:

> On 2008-11-23 12:50, Jonas Maebe wrote:
> >
> > On 23 Nov 2008, at 11:29, listmember wrote:
> >
> >>> It is not hard to tell that an app that works with text files
> >>> (such as Lazarus) will consume 4 times more memory per file
> >>> loaded.
> >>
> >> But, how much memory does, say, Lazarus --itself-- consume
> >> specifically for string storage when run for the first time?
> >
> >  From Matias' original answer: "For example the lazarus IDE
> > typically holds 50 to 200mb sources in memory."
> >
> > I.e., at least 4 times 50 to 200mb.
> 
> This is my thick-day. So, permit me to ask this:
> 
> Are you really saying that strings occupy 50 MB Lazarus's memory
> footprint?
> 
> I just checked (using Process Explorer, under Windows) and this is
> what I see:
> 
> Working set: 2,216 K
> Peak Working set: 26,988 K
> 
> I can't see where that 50 MB fits into that.

Do a 'find declaration' on an identifier, that does not exist. This
will explore all units of the uses section.


Mattias



More information about the fpc-devel mailing list