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 225521 - Low performance of FileChangedManager.isClassLoading()
Summary: Low performance of FileChangedManager.isClassLoading()
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 7.3
Hardware: PC Solaris
: P2 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2013-01-30 10:57 UTC by Alexander Simon
Modified: 2013-04-19 03:23 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
YourKit report (137.28 KB, text/html)
2013-01-30 10:57 UTC, Alexander Simon
Details
snapshot of the problem (79.52 KB, application/octet-stream)
2013-04-02 14:11 UTC, Petr Cyhelsky
Details
.npss file attached from NetBeans (1.05 MB, application/x-npss)
2013-04-03 11:45 UTC, Petr Cyhelsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2013-01-30 10:57:49 UTC
Created attachment 130825 [details]
YourKit report

The method implementation has a performance problem.
For example checking external changes spends 64% of wall time in the method on Mozilla browser C/C++ project.
Comment 1 Petr Cyhelsky 2013-04-02 14:11:38 UTC
Created attachment 133261 [details]
snapshot of the problem

Snapshot taken after incredibly long startup and background scanning (cca 10 minutes each) when ide was still using lots of CPU for no apparent reason
Comment 2 Petr Cyhelsky 2013-04-03 11:45:33 UTC
Created attachment 133278 [details]
.npss file attached from NetBeans

.npss file
Comment 3 Jaroslav Tulach 2013-04-18 07:46:02 UTC
ergonomics#b220766a5669
Comment 4 Quality Engineering 2013-04-19 03:23:52 UTC
Integrated into 'main-golden', will be available in build *201304182301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/b220766a5669
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #225521: Do the expensive isClassLoading check only when it is clear the system is about to go I/O idle