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 178755

Summary: Apisupport project slows down Go To Type: Due to slow RP.enque
Product: platform Reporter: Tomas Zezula <tzezula>
Component: -- Other --Assignee: issues@platform <issues>
Status: RESOLVED FIXED    
Severity: normal CC: vv159170
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 177274    

Description Tomas Zezula 2009-12-16 14:11:01 UTC
The apisupport project slows down the Go To Type in order of magnitude.
See the snapshot: http://statistics.netbeans.org/analytics/exception.do?id=318561
9053ms - apisupport project vs 181 ms java.source + lucene
Comment 1 Jesse Glick 2010-02-01 11:43:31 UTC
In that snapshot, a bunch of projects are getting loaded. Most of the time is spent in filesystems.EventControl.exitAtomicAction. Over 2/3 of the thread's time is inside RequestProcessor.Task.schedule, which has been called 384 times, which looks excessive to me.

Assuming this is not really a P2 unless (a) it is clearly reproducible, (b) it affects _all_ NBM projects, not just those in the netbeans.org source tree.
Comment 2 Jaroslav Tulach 2010-04-15 15:23:17 UTC
Can I mark this issue fixed when I speed up RequestProcessor by 20%? core-main#4d36a0faa1b4

If you point me to some new snapshot, created after my fix, I can address another issue.
Comment 3 Quality Engineering 2010-04-16 04:25:29 UTC
Integrated into 'main-golden', will be available in build *201004160201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/4d36a0faa1b4
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #178755: Less contention obtaining the Logger (used to be a global lock), now it is final static variable without any sycnhronization. This shall speed up the case described in #178755 by 20%.