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
History
This bug has been already fixed in HEAD.
Thank you.
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.
Please trying the codecompletion branch:
http://forums.codeblocks.org/index.php/topic,13463.0.html
It shoud be fixed in cc branch.
I am testing with the CC branch nightly (rev. 6688).
I will look into it after cc_branch merged with trunk.
Sorry, but I can't reproduce. Any additional information? Does it
still persist?
Hi, ir0nh34d, can you give me a test demo for reproduce this issue?
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
Hi, ir0nh34d, could you trying r6800, and feedback to me?
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();
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