Author Topic: Perfomance question: CodeBlocks "normal" RAM usage and file closing delay  (Read 5172 times)

Offline CH4Code

  • Single posting newcomer
  • *
  • Posts: 2
Hi,
I have been using CodeBlocks for hobby projects for a while now and upgraded from the 2020 Version to the 25.03 Version a while back.
However I have noticed some very slow reaction times in the 25.03 version and investigated the issue, which I did not have with C::B 2020.

Especially when I close files, it freezes the application for about 10 seconds, which doesn't make any sense to me.
I also noticed that C:B consumes 4GB of RAM by just starting it, pushing my memory to above 90% used. Is this normal? I'm sorry to compare but Visual Studio with a loaded complex project only consumes ~500MB of RAM.
Also while closing my project the RAM usage suddenly increases by 1GB and never quite goes down again. How does that make any sense?
Finally, I have to reload my project quite often because I use cmake to re-generate the project file whenever I add or change resources etc. and that also takes about 30-45 seconds, which feels a bit painful.

I'm on windows 11 (8GB RAM), using msys2, mingw64, cmake, ninja, with CodeBlocks.

I don't remember having an issue with CB 2020 before (closing files being slow).
1) Can I do anything to reduce the RAM usage of CB or 2) the file closing issue? 3) Is this amount of memory usage expected?

I already reinstalled CodeBlocks and got rid of an unrelated "lib_finder.dll not found" error, thanks to forum posts, maybe you can help me out here, too?

Thank you.


Offline SmithJoe

  • Single posting newcomer
  • *
  • Posts: 2
Re: Perfomance question: CodeBlocks "normal" RAM usage and file closing delay
« Reply #1 on: September 19, 2026, 01:54:11 pm »
That sounds like a genuine resource issue, especially with only 8 GB of RAM. The 4 GB usage and long freezes would make me check plugins/code completion first, and possibly compare with 20.03 again to see if the problem is specific to 25.03.

Offline CH4Code

  • Single posting newcomer
  • *
  • Posts: 2
Hello,

I managed to solve all the problems, I'll post the solution in case someone else stumbles into this:

The problems (high memory usage and 10 second file closing delay) were solved after I checked the CB startup logs (In-IDE unter Logs&Others pane -> Code::Blocks tab) and fixed any problems appearing there:

I fixed the help.ini file which pointed to the wrong help file .chm file names (I dont think this was related to the performance hits).

I fixed some paths C:\Users\<myUser>\AppData\Roaming\CodeBlocks\default.conf which where WRONG and from my old installation of CB 2020.
Especially SpellChecker plugin had some missing icons due to outdated path. Also the sets>gcc>master_path>str compiler had the wrong path (I'm not using it, I'm using a msys2-mingw compiler so I did not notice it was defunct). Finally I added a .idx and .dat thesaurus file for SpellChecker, like described in the spell checker Wiki.

After these measures now CB only requires 80MB of memory after starting and about 100MB after I load my project, and closing files only takes a split second instead of 10 seconds.I'm not sure which of the problems caused the memory hogging, but one of those must have been it.

I'm quite happy now for me this is solved. :)

I dont think CB should react to incorrect paths in this manner, so if some of the plugin developers of SpellChecker or CB developers may want to have a look how this can happen.

Cheers