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.

Bug 43718 - [perf] Typing in editor is slow
Summary: [perf] Typing in editor is slow
Status: CLOSED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 4.x
Hardware: PC All
: P2 blocker (vote)
Assignee: Jan Becicka
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2004-05-24 10:05 UTC by Martin Roskanin
Modified: 2007-04-03 18:02 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Roskanin 2004-05-24 10:05:25 UTC
During typing in editor the typing is sometimes
sluggish, this occur after some idle time (maybe
after background parser triggers) or after typing
"new " or "." when completion popup is triggered.
After measurements in OptimizeIt, 49% of AWT is
taken by JavaEditor$10.actionPerformed() ->
JavaEditor$JavaEditorComponent.selectElementsAtOffset()
that enters javacore.ExclusiveMutex.enter()

AWT is blocked by waiting for Mutex leave, what
can depend on CompletionQuery finishing or some
other background process that locks Mutex.
Comment 1 Martin Roskanin 2004-05-24 10:07:07 UTC
sorry for wrong assignment...
Comment 2 Jan Becicka 2004-05-24 13:57:58 UTC
Fixed.

Checking in JavaNode.java;
/cvs/java/src/org/netbeans/modules/java/JavaNode.java,v  <-- 
JavaNode.java
new revision: 1.99.6.5; previous revision: 1.99.6.4
done
Checking in JavaEditor.java;
/cvs/java/src/org/netbeans/modules/java/JavaEditor.java,v  <-- 
JavaEditor.java
new revision: 1.155.6.22; previous revision: 1.155.6.21
done


I moved several "beginTrans's" from awt thread. AWT is not blocked on
my windows machine any more. Please verify on different platform or
reopen if awt is still blocked during typing.
Comment 3 Jiri Prox 2005-07-18 16:00:15 UTC
Verified in dev-050718