Bug #11614 2007-07-22 19:43

ir0nh34d

Extremely high CPU with arguements popup

When displaying the 'arguments' popup (the popup that shows up after I select a function in the completion list), I can drive my CPU to 100% simply by typing fast.

Category
Plugin::CodeCompletion
Group
 
Status
Closed
Close date
2010-11-01 08:01
Assigned to
loaden
loaden 2010-10-16 01:29

This bug has been already fixed in HEAD.

Thank you.

ir0nh34d 2010-10-16 02:55

I can still recreate this issue with rev. 6688 by typing really fast after the open bracket for a function. I suspect it has to do with C::B trying to pop-up the call tip while I'm still typing.

loaden 2010-10-16 03:40

Please trying the codecompletion branch:

http://forums.codeblocks.org/index.php/topic,13463.0.html

It shoud be fixed in cc branch.

ir0nh34d 2010-10-16 12:29

I am testing with the CC branch nightly (rev. 6688).

loaden 2010-10-16 13:32

I will look into it after cc_branch merged with trunk.

loaden 2010-10-20 06:14

Sorry, but I can't reproduce. Any additional information? Does it

still persist?

loaden 2010-10-20 06:15

Hi, ir0nh34d, can you give me a test demo for reproduce this issue?

ir0nh34d 2010-10-20 11:31

Hi loaden,

I'm able to create a simple test case that exhibits the behaviour:

1. Create a new project using the 'Win32 GUI project' wizard.

2. Open main.cpp.

3. Type 'Send' and select the 'SendMessage' function.

4. After the open brace, start typing random characters as fast as you can.

5. On this laptop I'm using (dual core, x86 based) , according to Task Manager, the CPU utilization hits around 37%.

The CPU usage is roughly equivalent due to the fact that when I originally reported the issue I was using a single CPU machine.

As I mentioned, my assumption is that C::B is trying to do the calltip check while the text is being typed in. Perhaps if there could be some sort of timer that is reset on each keypress so that the calltip waits for the user to stop typing?

I'm using the latest CC nightly (rev. 6688).

Thank you for looking in to this!

Chris

loaden 2010-11-01 07:39

Hi, ir0nh34d, could you trying r6800, and feedback to me?

loaden 2010-11-01 08:01
Hi, I look into it, and can reproduce this issue, but, it wont fix, because this is normal behavior.
see:
        // update calltip highlight while we type
        if (control->CallTipActive())
            ShowCallTip();
ir0nh34d 2010-11-01 11:41

Hi loaden,

Fair enough, thank you for looking in to it. From a users perspective, I believe this is an uncommon case, given that it's unlikely the user will type fast enough to cause the severe CPU usage.

Cheers!

Chris