[Lazarus] startlazarus and memory consumption

Graeme Geldenhuys graemeg at opensoft.homeip.net
Tue Jul 14 15:14:39 CEST 2009

Mattias Gaertner wrote:
> executable without smart linking and without wpo 
> + stack 
> + loaded config files 
> + mem fragmentation
> A simple lcl app needs 2-4MB less.

Two questions...1) Can you defrag memory? I'm running Ubuntu 8.04.2 - if 
that helps. Or do you just close all apps, logout and then log back in 
and start all apps again.  I tend to run my system for weeks on end 
without logout or reboot.

2) If I start Lazarus IDE directly using the 'lazarus' executable, I 
also see a Splash screen. So why does the 'startlazarus' application 
also have a splash screen? Wouldn't that already save a bit of 
resources? I guess about 2-3MB maybe.

But then the startlazarus still has to pull in the whole LCL to handle 
MessageDlg() calls etc... So like you said, if the LCL isn't optimized, 
the startlazarus can't save much more.

> FYI: the 95MB is about 50% mem fragmentation.

Question 1 applies...

   - Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal

More information about the Lazarus mailing list