This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | XML Schema code completion autopopup slows down the editor | ||
---|---|---|---|
Product: | xml | Reporter: | Andrei Badea <abadea> |
Component: | Schema | Assignee: | Samaresh Panda <samaresh> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | issues, tmysik, vstejskal |
Priority: | P1 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 131451 | ||
Bug Blocks: | |||
Attachments: | Thread dumps |
Description
Andrei Badea
2008-03-28 18:03:24 UTC
Created attachment 59303 [details]
Thread dumps
This is strange, because I have not made any changes in the CC module that will cause this regression. I believe this has been caused by some underlying changes elsewhere. Anyway, let me take a look... It is quite possible. I am getting the same behavior even when the XML schema CC is disabled. I have new stack traces, so I will file another issue against the editor. Still, XML schema CC autopopup does slow down the editor noticeably. For example, it activates even if I type whitespace -- I can see the "Please wait" popup being disabled for at least a second. The editor is quite faster when the XML schema CC module is disabled. Filed also issue 131451. I'm not sure where the problem is. I tried this with build 200803230003 and 200803241203 and I do not see any issue there. Seems like a recent change is causing this regression and I do see the sluggish behavior in any xml not just schemas. On a fresh build from source, it looks better, however, my performance tests are not showing any improvement. I am able to reproduce the high CPU usage while typing characters while "please wait..." is displayed but they are not drawn slowly. Also, even after typing a lot of characters CPU usage immediately returned to idle like state. System info: Product Version: NetBeans IDE Dev (Build 200803302302) Java: 1.5.0_13; Java HotSpot(TM) Client VM 1.5.0_13-119 System: Mac OS X version 10.5.2 running on i386; MacRoman; en_US (nb) I guess the build doesn't have the fix for issue 131451. I just verified with a fresh source, this issue and issue 131451 has been fixed. Also my CC performance tests which regressed heavily (from ~8sec to ~80sec), came down to ~40sec after my fix http://hg.netbeans.org/main?cmd=changeset;node=42d49de611e2 and it came down to ~4sec after issue 131451 was fixed. I should rather say that, this issue depended on issue 131451. Fix Verified Product Version: NetBeans IDE Dev (Build 200807101204) Java: 1.6.0_05; Java HotSpot(TM) 64-Bit Server VM 1.6.0_05-b13-52 System: Mac OS X version 10.5.4 running on x86_64; MacRoman; en_US (nb) |