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 226073 - EDT used for class loading at startup
Summary: EDT used for class loading at startup
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 7.2.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2013-02-13 15:25 UTC by greggwon
Modified: 2013-08-23 14:57 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack traces of startup while project loading was active, and then once background scanning started (265.37 KB, text/plain)
2013-02-13 15:25 UTC, greggwon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description greggwon 2013-02-13 15:25:52 UTC
Created attachment 131352 [details]
Stack traces of startup while project loading was active, and then once background scanning started

While doing some startup tuning and testing I caught the attached set of stack traces which show the EDT being used for explict calls to class loading.  This makes startup block certain GUI activities and creates a slow and clunky startup.  Some of these things should be done on separate threads to take advantage of multiple cores as well.
Comment 1 David Strupl 2013-08-23 14:57:36 UTC
Hello,

I am sorry but we cannot avoid all classloading from EDT. Some Swing code needs to be done in AWT thread and when such code needs classes that were not loaded previously they get loaded. We cannot tell in advance what are all the classes that we will need to have loaded. I am closing this report as won't fix.

If some situation is a real blocker for the user please use the automatic slowness reporting feature of the IDE to report cases when something takes unacceptably long and blocks the user.

Br, 

David