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 83356

Summary: JMManager initialization slows down perceived startup
Product: java Reporter: Petr Nejedly <pnejedly>
Component: UnsupportedAssignee: Petr Nejedly <pnejedly>
Status: RESOLVED FIXED    
Severity: blocker CC: issues, mmirilovic
Priority: P3 Keywords: PERFORMANCE
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Petr Nejedly 2006-08-24 10:50:36 UTC
It's startupFinished() -> init() is run in parallel with welcome screen init,
which slows down welcome screen display.
I suggest to delay the init() call (which is already performed asynchronously in
RP) by submitting a scheduled task to the RP, delayed by 1500ms (which should be
enough even on minimum hardware configuration.
The "fix" is really trivial:
--- src/org/netbeans/modules/javacore/JMManager.java    11 Aug 2006 14:04:27
-0000      1.118.2.4.2.4
+++ src/org/netbeans/modules/javacore/JMManager.java    24 Aug 2006 09:49:52 -0000
@@ -1440,7 +1440,7 @@
                 public void run() {
                     init();
                 }
-            });
+            }, 1500);
         }
     }
Comment 1 Pavel Flaska 2006-08-24 16:31:38 UTC
I have no objection.
Comment 2 Petr Nejedly 2006-08-28 09:46:42 UTC
Integrated to trunk, 5.5 pending
java/javacore/src/org/netbeans/modules/javacore/JMManager.java,v1.131
Comment 3 Petr Nejedly 2006-08-30 08:26:27 UTC
Integrated into release55:
java/javacore/src/org/netbeans/modules/javacore/JMManager.java,v1.118.2.4.2.5
Comment 4 Quality Engineering 2007-09-20 12:02:11 UTC
Reorganization of java component