Author Topic: How could I speed up the codebload13.12 lanching  (Read 2796 times)

Offline tonystz

  • Single posting newcomer
  • *
  • Posts: 5
How could I speed up the codebload13.12 lanching
« on: January 24, 2014, 02:58:45 pm »
I feel the 13.12 build startup is too slow. Could someone help me? Thanks in advance.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5916
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: How could I speed up the codebload13.12 lanching
« Reply #1 on: January 24, 2014, 03:18:53 pm »
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline tonystz

  • Single posting newcomer
  • *
  • Posts: 5
Re: How could I speed up the codebload13.12 lanching
« Reply #2 on: January 24, 2014, 03:21:40 pm »
I do not know why. I have alreay disable some plugins. But It's same too slow.

Offline dmoore

  • Developer
  • Lives here!
  • *****
  • Posts: 1576
Re: How could I speed up the codebload13.12 lanching
« Reply #3 on: January 24, 2014, 03:49:36 pm »
Just disabling plugins isn't usually enough because the plugins still get loaded at runtime (they just aren't "attached"). You need to move the plugins SOs/DLLs so C::B won't find them.

I have a patch that stops SOs/DLLs from being loaded if the plugin is disabled here: http://forums.codeblocks.org/index.php/topic,18552.msg126967.html#msg126967

with comparison of start time with all plugins enabled vs disabled here:
http://forums.codeblocks.org/index.php/topic,18552.msg126987.html#msg126987

There are some other optimizations we could do that would defer initialization of some objects until they're actually used, but the tradeoff is making the GUI less responsive when you first use those things.

Otherwise, there's just no getting around the fact that the codebase is pretty big and heavy as is the wxWidgets library.
« Last Edit: January 24, 2014, 04:06:16 pm by dmoore »