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 159661

Summary: AWT blocked for ages in NbEditorDocument.addAnnotation
Product: editor Reporter: Jaroslav Tulach <jtulach>
Component: Hints & AnnotationsAssignee: Max Sauer <msauer>
Status: RESOLVED FIXED    
Severity: blocker CC: issues
Priority: P2 Keywords: PERFORMANCE
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 144426    
Attachments: visual proof
whole profile snapshot

Description Jaroslav Tulach 2009-03-05 09:37:32 UTC
After start the AWT seems to be blocked in addAnnotation for a significant amount of time. It waits for processing for 
some folder on disk and there does not seem to be an easy way to make this faster, but:

The NbEditorKit.call() can preinitialize content of this folder. Then the whole waiting will happen in another thread, 
before the addAnnotation is even called. 

Can this be done? The IDE will feel more responsive then.
Comment 1 Jaroslav Tulach 2009-03-05 09:38:05 UTC
Created attachment 77755 [details]
visual proof
Comment 2 Jaroslav Tulach 2009-03-05 09:38:39 UTC
Created attachment 77756 [details]
whole profile snapshot
Comment 3 Max Sauer 2009-03-09 11:25:12 UTC
Should be fixed, diky Jardo. This could be probably done in a more polished way (ie, not searching through whole folder, but touching directly the xml file 
with annotation, which would have to have some naming convention.)
---
http://hg.netbeans.org/jet-main/rev/c2aa5b174897
Comment 4 Quality Engineering 2009-03-11 10:13:29 UTC
Integrated into 'main-golden', will be available in build *200903110259* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/c2aa5b174897
User: Max Sauer <msauer@netbeans.org>
Log: #159661: AWT blocked for ages in NbEditorDocument.addAnnotation