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 229771 - org.netbeans.modules.php.project.ui.logicalview.PhpSourcesFilter.isNbProject: LowPerformance took 20038 ms.
Summary: org.netbeans.modules.php.project.ui.logicalview.PhpSourcesFilter.isNbProject:...
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2013-05-15 10:53 UTC by Exceptions Reporter
Modified: 2013-05-21 02:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 199617


Attachments
nps snapshot (107.88 KB, application/nps)
2013-05-15 10:53 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2013-05-15 10:53:11 UTC
Build: NetBeans IDE 7.3 (Build 201302132200)
VM: Java HotSpot(TM) Client VM, 23.21-b01, Java(TM) SE Runtime Environment, 1.7.0_21-b11
OS: Windows 7

User Comments:
GUEST: ?????? ?????? ? ????????????? ????????? ??????. ?????? ????? ???????, ?? ?????????????? ?????????? ???? ????????? ?????????????? ? ??????????.

GUEST: Can't end background serach. Secend try.



Maximum slowness yet reported was 20400 ms, average is 20219
Comment 1 Exceptions Reporter 2013-05-15 10:53:13 UTC
Created attachment 134459 [details]
nps snapshot
Comment 2 Tomas Mysik 2013-05-20 12:35:56 UTC
Snapshot 1:
java.io.WinNTFileSystem.canonicalize0[native]()	50.303417	5 237 ms (50,3%)	5 237 ms
java.io.File.exists()	25.26316	2 630 ms (25,3%)	2 630 ms
java.io.File.isDirectory()	24.28	2 527 ms (24,3%)	2 527 ms

Snapshot 2:
java.io.WinNTFileSystem.canonicalize0[native]()	72.55958	7 247 ms (72,6%)	7 247 ms
java.io.File.isDirectory()	10.242512	1 023 ms (10,2%)	1 023 ms
java.io.File.exists()	9.900529	988 ms (9,9%)	988 ms

Snapshot 3:
java.io.WinNTFileSystem.canonicalize0[native]()	94.48297	10 987 ms (94,5%)	10 987 ms
java.io.File.exists()	4.33215	503 ms (4,3%)	503 ms
java.io.File.isDirectory()	1.1279899	131 ms (1,1%)	131 ms

So, it seems that the FS was busy, in all the cases. Unfortunately, likely nothing we can solve in NetBeans.

Thanks.
Comment 3 Tomas Mysik 2013-05-20 13:39:02 UTC
I will change it to use FileObjects, maybe it will help...
Comment 4 Tomas Mysik 2013-05-20 13:56:41 UTC
Could be better now, I hope.

http://hg.netbeans.org/web-main/rev/e9c6f6cf6ea1
Comment 5 Quality Engineering 2013-05-21 02:35:37 UTC
Integrated into 'main-golden', will be available in build *201305202300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/e9c6f6cf6ea1
User: Tomas Mysik <tmysik@netbeans.org>
Log: #229771 - org.netbeans.modules.php.project.ui.logicalview.PhpSourcesFilter.isNbProject: LowPerformance took 20038 ms.

Using FileObjects instead of Files.