Hi, I just rebuilt Lazarus IDE adding cmem unit right here in the Lazarus source:
{$IFDEF EnableRedirectStdErr}
redirect_stderr,
{$ENDIF}
{$IF defined(HASAMIGA) and not defined(DisableMultiThreading)}
athreads,
{$ENDIF}
{$IF defined(UNIX) and not defined(DisableMultiThreading)}
cthreads,
{$ENDIF}
{$IFDEF IDE_MEM_CHECK}
MemCheck,
{$ENDIF}
{$IF defined(Unix)}
clocale,
{$IFEND}
cmem, // <---------- here
I've tested this on Windows and works fine, a normal window was taking 58 mb of ram, now is using 32 mb of ram.
This of course has the side effect that I can not debug the IDE for memory leaks, but I don't do that so there's no problem.
It should work faster now? At least it uses less memory.