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 - AWT blocked for ages in NbEditorDocument.addAnnotation
Summary: AWT blocked for ages in NbEditorDocument.addAnnotation
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Hints & Annotations (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Max Sauer
URL:
Keywords: PERFORMANCE
Depends on:
Blocks: 144426
  Show dependency tree
 
Reported: 2009-03-05 09:37 UTC by Jaroslav Tulach
Modified: 2009-03-11 10:13 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
visual proof (49.46 KB, image/png)
2009-03-05 09:38 UTC, Jaroslav Tulach
Details
whole profile snapshot (82.77 KB, application/octet-stream)
2009-03-05 09:38 UTC, Jaroslav Tulach
Details

Note You need to log in before you can comment on or make changes to this bug.
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