Author Topic: It seems the SVN rev 5742 will always occupy 50% of my CPU  (Read 6970 times)

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5913
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
It seems the SVN rev 5742 will always occupy 50% of my CPU
« on: August 25, 2009, 03:31:17 am »
Today, I have build the rev 5742 from TDM-4.4.1.
But it seems when loading a project, codeblocks.exe always occupies 50% of my cpu. I suspect there are something wrong with the "encoding detection related code", but can't give the exact clue.

Any comments?
Thanks.
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 blueshake

  • Regular
  • ***
  • Posts: 459
Re: It seems the SVN rev 5742 will always occupy 50% of my CPU
« Reply #1 on: August 25, 2009, 04:38:04 am »
ok,I rebuild the rev5724 from TDM-4.4.0 ,and the problem gone.
Keep low and hear the sadness of little dog.
I fall in love with a girl,but I don't dare to tell her.What should I do?

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5913
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: It seems the SVN rev 5742 will always occupy 50% of my CPU
« Reply #2 on: August 25, 2009, 04:47:13 am »
ok,I rebuild the rev5724 from TDM-4.4.0 ,and the problem gone.

rev5724 or rev5742?
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 blueshake

  • Regular
  • ***
  • Posts: 459
Re: It seems the SVN rev 5742 will always occupy 50% of my CPU
« Reply #3 on: August 25, 2009, 04:50:31 am »
sorry,5742,my wrong type.
Keep low and hear the sadness of little dog.
I fall in love with a girl,but I don't dare to tell her.What should I do?

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: It seems the SVN rev 5742 will always occupy 50% of my CPU
« Reply #4 on: August 25, 2009, 07:00:34 am »
Today, I have build the rev 5742 from TDM-4.4.1.
But it seems when loading a project, codeblocks.exe always occupies 50% of my cpu. I suspect there are something wrong with the "encoding detection related code", but can't give the exact clue.

Any comments?
Thanks.


Why do you think it's encoding detection ?
Nothing changed there, except that pure ascii files get opened with user defined default and not system-default.

Did you read this post, there seems to be a problem with TDM-4.4.1.

Oops:
I just saw you posted there also, did you try to revert TDM's gcc to check whether it's compiler or C::B related ?

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5913
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: It seems the SVN rev 5742 will always occupy 50% of my CPU
« Reply #5 on: August 25, 2009, 07:34:20 am »
Today, I have build the rev 5742 from TDM-4.4.1.
But it seems when loading a project, codeblocks.exe always occupies 50% of my cpu. I suspect there are something wrong with the "encoding detection related code", but can't give the exact clue.

Any comments?
Thanks.


Why do you think it's encoding detection ?
Nothing changed there, except that pure ascii files get opened with user defined default and not system-default.

revert to TDM 4.4.0 seems works( reported by blueshake).
I'm trying to track the bug...

In the 4.4.1 build CB:
If I disable the CC plugin, loading a file still cause 50% CPU usage.  :D
« Last Edit: August 25, 2009, 09:13:26 am by ollydbg »
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.