On Wed, 9 Aug 2006 12:21:06 +0200 (CEST)
Michael Van Canneyt <[EMAIL PROTECTED]> wrote:
>
>
> On Wed, 9 Aug 2006, Mattias Gaertner wrote:
>
> > On Wed, 9 Aug 2006 11:02:39 +0200
> > "A.J. Venter" <[EMAIL PROTECTED]> wrote:
> >
> > > > will include the resource file in the binary. This feature is enabled
> > > > even
> > > > in the fixes branch.
> > > >
> > > > In fact, Lazarus could switch now to using this for including form
> > > > files.
> > > > This would drastically reduce the memory requirements of all Lazarus
> > > > applications.
> > > Hang on a second... you're saying that a switch we CAN make could greatly
> > > reduce memory requirements and if I understand right, could do so in a
> > > (mostly) platform neutral way ?
> >
> > Yes, it will save some memory.
> > IMO the word 'drastically' might be a little bit overzealous.
>
> Hey,
> I wanted only to make a case for this, there is no need to torpedo my efforts
> with numbers ;-)
:)
Sorry. I will try to fix this: Applications with big pictures in the forms can
drastically save memory.
> Seriously;
> Roughly said, It's about the size of the resource (.lfm) files, plus some
> additional structures maintained by Lazarus. This should give you a rough
> estimate of how much memory you would save.
And divide that by two. The .lfm saves binary data as hexadecimals.
The additional structures maintained by Lazarus are about ~50 bytes per form.
For the IDE they make 2% of the 1,3mb.
Mattias
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives