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 - JMManager initialization slows down perceived startup
Summary: JMManager initialization slows down perceived startup
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Petr Nejedly
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2006-08-24 10:50 UTC by Petr Nejedly
Modified: 2007-09-26 09:14 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 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