Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: Yury Benesh (aka ybx) on August 09, 2006, 02:23:21 pm

Title: Codeblocks loads long on Celeron-450Mhz
Post by: Yury Benesh (aka ybx) on August 09, 2006, 02:23:21 pm
CB needs a lot of time to start and occupies as much as >30 MB of memory which is quite important on my home Celeron 450MHz + 384 RAM PC.
Is it wxWidgets related issue?

It is not a blame, after it is loaded it works fine.
Title: Re: Codeblocks loads long on Celeron-450Mhz
Post by: thomas on August 09, 2006, 02:53:28 pm
It takes about half as much (both startup time and memory) if you don't enable code completion.

If you are desperate about saving memory, disable all plugins.

If you are really desperate, build Code::Blocks yourself, defining NDEBUG and undefining cbDEBUG.

Also, you can patch the sources:
a) disable the resource preloader (found in manager.cpp)
b) do a global search for ": public BlockAllocated" and replace the second template parameter with 1 in all cases.
This may possibly save you around 2-3 MB of RAM total, but will make the application significantly slower, too.