Author Topic: Codeblocks loads long on Celeron-450Mhz  (Read 1987 times)

Offline Yury Benesh (aka ybx)

  • Multiple posting newcomer
  • *
  • Posts: 16
    • http://ybx.narod.ru
Codeblocks loads long on Celeron-450Mhz
« 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.
« Last Edit: August 09, 2006, 02:25:04 pm by Yury Benesh (aka ybx) »

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Codeblocks loads long on Celeron-450Mhz
« Reply #1 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.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."